Skip to content

Commit 7a653fe

Browse files
committed
Remove stable_mir::generics_of/predicates_of those shouldn't be exposed
1 parent 22d41ae commit 7a653fe

File tree

1 file changed

+0
-8
lines changed
  • compiler/rustc_smir/src/stable_mir

1 file changed

+0
-8
lines changed

compiler/rustc_smir/src/stable_mir/mod.rs

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -109,14 +109,6 @@ pub fn trait_impl(trait_impl: &ImplDef) -> ImplTrait {
109109
with(|cx| cx.trait_impl(trait_impl))
110110
}
111111

112-
pub fn generics_of(generic_def: &GenericDef) -> Generics {
113-
with(|cx| cx.generics_of(generic_def))
114-
}
115-
116-
pub fn predicates_of(trait_def: &TraitDef) -> GenericPredicates {
117-
with(|cx| cx.predicates_of(trait_def))
118-
}
119-
120112
pub trait Context {
121113
fn entry_fn(&mut self) -> Option<CrateItem>;
122114
/// Retrieve all items of the local crate that have a MIR associated with them.

0 commit comments

Comments
 (0)