Add missing high-level stable_mir::generics_of fn
This commit is contained in:
parent
b60f7b51a2
commit
3dd1c6bc98
1 changed files with 4 additions and 0 deletions
|
@ -109,6 +109,10 @@ 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))
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue