diff options
| author | Santiago Pastorino <spastorino@gmail.com> | 2023-08-28 14:55:08 -0300 |
|---|---|---|
| committer | Santiago Pastorino <spastorino@gmail.com> | 2023-08-28 14:55:08 -0300 |
| commit | 7a653feffbe936eb2d1f88e47f28dd3ffd81d9eb (patch) | |
| tree | 5b674eb45c90d35fd1931a6eb898d3a857a7a39d | |
| parent | 22d41ae90facbffdef9115809e8b6c1f71ebbf7c (diff) | |
| download | rust-7a653feffbe936eb2d1f88e47f28dd3ffd81d9eb.tar.gz rust-7a653feffbe936eb2d1f88e47f28dd3ffd81d9eb.zip | |
Remove stable_mir::generics_of/predicates_of those shouldn't be exposed
| -rw-r--r-- | compiler/rustc_smir/src/stable_mir/mod.rs | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/compiler/rustc_smir/src/stable_mir/mod.rs b/compiler/rustc_smir/src/stable_mir/mod.rs index 44938eaa035..c6b0e229e88 100644 --- a/compiler/rustc_smir/src/stable_mir/mod.rs +++ b/compiler/rustc_smir/src/stable_mir/mod.rs @@ -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. |
