1
Fork 0

Remove stable_mir::generics_of/predicates_of those shouldn't be exposed

This commit is contained in:
Santiago Pastorino 2023-08-28 14:55:08 -03:00
parent 22d41ae90f
commit 7a653feffb
No known key found for this signature in database
GPG key ID: 8131A24E0C79EFAF

View file

@ -109,14 +109,6 @@ pub fn trait_impl(trait_impl: &ImplDef) -> ImplTrait {
with(|cx| cx.trait_impl(trait_impl))
}
pub fn generics_of(generic_def: &GenericDef) -> Generics {
with(|cx| cx.generics_of(generic_def))
}
pub fn predicates_of(trait_def: &TraitDef) -> GenericPredicates {
with(|cx| cx.predicates_of(trait_def))
}
pub trait Context {
fn entry_fn(&mut self) -> Option<CrateItem>;
/// Retrieve all items of the local crate that have a MIR associated with them.