File tree Expand file tree Collapse file tree 1 file changed +10
-6
lines changed
compiler/rustc_smir/src/stable_mir Expand file tree Collapse file tree 1 file changed +10
-6
lines changed Original file line number Diff line number Diff line change @@ -135,12 +135,6 @@ impl ImplDef {
135
135
}
136
136
}
137
137
138
- impl GenericDef {
139
- pub fn generics_of ( & self ) -> Generics {
140
- with ( |cx| cx. generics_of ( self . 0 ) )
141
- }
142
- }
143
-
144
138
#[ derive( Clone , Debug ) ]
145
139
pub struct GenericArgs ( pub Vec < GenericArgKind > ) ;
146
140
@@ -463,6 +457,16 @@ pub struct TraitDecl {
463
457
pub deny_explicit_impl : bool ,
464
458
}
465
459
460
+ impl TraitDecl {
461
+ pub fn generics_of ( & self ) -> Generics {
462
+ with ( |cx| cx. generics_of ( self . def_id . 0 ) )
463
+ }
464
+
465
+ pub fn predicates_of ( & self ) -> GenericPredicates {
466
+ with ( |cx| cx. predicates_of ( self . def_id . 0 ) )
467
+ }
468
+ }
469
+
466
470
pub type ImplTrait = EarlyBinder < TraitRef > ;
467
471
468
472
#[ derive( Clone , Debug ) ]
You can’t perform that action at this time.
0 commit comments