@@ -18,7 +18,7 @@ use rustc_middle::mir::interpret::{ErrorHandled, EvalToValTreeResult, GlobalId};
18
18
use rustc_middle:: ty:: adjustment:: Adjust ;
19
19
use rustc_middle:: ty:: { self , Ty , TyCtxt } ;
20
20
use rustc_session:: impl_lint_pass;
21
- use rustc_span:: { sym, InnerSpan , Span } ;
21
+ use rustc_span:: { sym, DUMMY_SP , InnerSpan , Span } ;
22
22
use rustc_target:: abi:: VariantIdx ;
23
23
24
24
// FIXME: this is a correctness problem but there's no suitable
@@ -290,9 +290,7 @@ impl NonCopyConst {
290
290
promoted : None ,
291
291
} ;
292
292
let param_env = cx. tcx . param_env ( def_id) . with_reveal_all_normalized ( cx. tcx ) ;
293
- let result = cx
294
- . tcx
295
- . const_eval_global_id_for_typeck ( param_env, cid, rustc_span:: DUMMY_SP ) ;
293
+ let result = cx. tcx . const_eval_global_id_for_typeck ( param_env, cid, DUMMY_SP ) ;
296
294
self . is_value_unfrozen_raw ( cx, result, ty)
297
295
}
298
296
@@ -303,7 +301,7 @@ impl NonCopyConst {
303
301
cx. tcx ,
304
302
cx. param_env ,
305
303
ty:: UnevaluatedConst :: new ( def_id, args) ,
306
- rustc_span :: DUMMY_SP ,
304
+ DUMMY_SP ,
307
305
) ;
308
306
self . is_value_unfrozen_raw ( cx, result, ty)
309
307
}
0 commit comments