@@ -1187,11 +1187,11 @@ impl<'a, 'hir> LoweringContext<'a, 'hir> {
11871187 hir_id : this. lower_node_id ( node_id) ,
11881188 body : this
11891189 . lower_const_body ( path_expr. span , Some ( & path_expr) ) ,
1190+ span,
11901191 } )
11911192 } ) ;
11921193 return GenericArg :: Const ( ConstArg {
11931194 value : ct,
1194- span,
11951195 is_desugared_from_effects : false ,
11961196 } ) ;
11971197 }
@@ -1203,7 +1203,6 @@ impl<'a, 'hir> LoweringContext<'a, 'hir> {
12031203 }
12041204 ast:: GenericArg :: Const ( ct) => GenericArg :: Const ( ConstArg {
12051205 value : self . lower_anon_const ( ct) ,
1206- span : self . lower_span ( ct. value . span ) ,
12071206 is_desugared_from_effects : false ,
12081207 } ) ,
12091208 }
@@ -2349,6 +2348,7 @@ impl<'a, 'hir> LoweringContext<'a, 'hir> {
23492348 def_id : this. local_def_id ( c. id ) ,
23502349 hir_id : this. lower_node_id ( c. id ) ,
23512350 body : this. lower_const_body ( c. value . span , Some ( & c. value ) ) ,
2351+ span : this. lower_span ( c. value . span ) ,
23522352 } ) )
23532353 }
23542354
@@ -2656,8 +2656,7 @@ impl<'hir> GenericArgsCtor<'hir> {
26562656
26572657 lcx. children . push ( ( def_id, hir:: MaybeOwner :: NonOwner ( hir_id) ) ) ;
26582658 self . args . push ( hir:: GenericArg :: Const ( hir:: ConstArg {
2659- value : lcx. arena . alloc ( hir:: AnonConst { def_id, hir_id, body } ) ,
2660- span,
2659+ value : lcx. arena . alloc ( hir:: AnonConst { def_id, hir_id, body, span } ) ,
26612660 is_desugared_from_effects : true ,
26622661 } ) )
26632662 }
0 commit comments