File tree 1 file changed +3
-10
lines changed
compiler/rustc_builtin_macros/src
1 file changed +3
-10
lines changed Original file line number Diff line number Diff line change @@ -121,18 +121,11 @@ impl CfgEval<'_> {
121
121
let item = parser. parse_item ( ForceCollect :: Yes ) ?. unwrap ( ) ;
122
122
Annotatable :: Item ( self . flat_map_item ( item) . pop ( ) . unwrap ( ) )
123
123
}
124
- Annotatable :: AssocItem ( _, AssocCtxt :: Trait ) => {
124
+ Annotatable :: AssocItem ( _, ctxt ) => {
125
125
let item = parser. parse_trait_item ( ForceCollect :: Yes ) ?. unwrap ( ) . unwrap ( ) ;
126
126
Annotatable :: AssocItem (
127
- self . flat_map_assoc_item ( item, AssocCtxt :: Trait ) . pop ( ) . unwrap ( ) ,
128
- AssocCtxt :: Trait ,
129
- )
130
- }
131
- Annotatable :: AssocItem ( _, AssocCtxt :: Impl ) => {
132
- let item = parser. parse_impl_item ( ForceCollect :: Yes ) ?. unwrap ( ) . unwrap ( ) ;
133
- Annotatable :: AssocItem (
134
- self . flat_map_assoc_item ( item, AssocCtxt :: Impl ) . pop ( ) . unwrap ( ) ,
135
- AssocCtxt :: Impl ,
127
+ self . flat_map_assoc_item ( item, ctxt) . pop ( ) . unwrap ( ) ,
128
+ ctxt,
136
129
)
137
130
}
138
131
Annotatable :: ForeignItem ( _) => {
You can’t perform that action at this time.
0 commit comments