We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b60f7b5 commit 3dd1c6bCopy full SHA for 3dd1c6b
compiler/rustc_smir/src/stable_mir/mod.rs
@@ -109,6 +109,10 @@ pub fn trait_impl(trait_impl: &ImplDef) -> ImplTrait {
109
with(|cx| cx.trait_impl(trait_impl))
110
}
111
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
0 commit comments