File tree 1 file changed +2
-11
lines changed
src/librustc_ast_lowering
1 file changed +2
-11
lines changed Original file line number Diff line number Diff line change @@ -165,19 +165,10 @@ impl<'hir> LoweringContext<'_, 'hir> {
165
165
}
166
166
ItemKind :: MacroDef ( ..) => SmallVec :: new ( ) ,
167
167
ItemKind :: Fn ( ..) | ItemKind :: Impl { of_trait : None , .. } => smallvec ! [ i. id] ,
168
- ItemKind :: Static ( ref ty, ..) => {
168
+ ItemKind :: Static ( ref ty, ..) | ItemKind :: Const ( _ , ref ty , .. ) => {
169
169
let mut ids = smallvec ! [ i. id] ;
170
170
if self . sess . features_untracked ( ) . impl_trait_in_bindings {
171
- let mut visitor = ImplTraitTypeIdVisitor { ids : & mut ids } ;
172
- visitor. visit_ty ( ty) ;
173
- }
174
- ids
175
- }
176
- ItemKind :: Const ( _, ref ty, ..) => {
177
- let mut ids = smallvec ! [ i. id] ;
178
- if self . sess . features_untracked ( ) . impl_trait_in_bindings {
179
- let mut visitor = ImplTraitTypeIdVisitor { ids : & mut ids } ;
180
- visitor. visit_ty ( ty) ;
171
+ ImplTraitTypeIdVisitor { ids : & mut ids } . visit_ty ( ty) ;
181
172
}
182
173
ids
183
174
}
You can’t perform that action at this time.
0 commit comments