Skip to content

Commit 3dd1c6b

Browse files
committed
Add missing high-level stable_mir::generics_of fn
1 parent b60f7b5 commit 3dd1c6b

File tree

1 file changed

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

1 file changed

+4
-0
lines changed

compiler/rustc_smir/src/stable_mir/mod.rs

+4
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,10 @@ 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+
112116
pub fn predicates_of(trait_def: &TraitDef) -> GenericPredicates {
113117
with(|cx| cx.predicates_of(trait_def))
114118
}

0 commit comments

Comments
 (0)