File tree 2 files changed +9
-3
lines changed
2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change 1
1
use super :: { ConstEvalResult , ErrorHandled , GlobalId } ;
2
2
3
3
use crate :: mir;
4
+ use crate :: ty:: fold:: TypeFoldable ;
4
5
use crate :: ty:: subst:: { InternalSubsts , SubstsRef } ;
5
6
use crate :: ty:: { self , TyCtxt } ;
6
- use crate :: ty:: fold:: TypeFoldable ;
7
7
use rustc_hir:: def_id:: DefId ;
8
8
use rustc_span:: Span ;
9
9
Original file line number Diff line number Diff line change @@ -255,7 +255,11 @@ pub fn const_eval_validated_provider<'tcx>(
255
255
}
256
256
257
257
tcx. const_eval_raw ( key) . and_then ( |val| {
258
- trace ! ( "const_eval_raw succeeded. val.alloc_id = {:?}. val.ty = {:?}" , val. alloc_id, val. ty) ;
258
+ trace ! (
259
+ "const_eval_raw succeeded. val.alloc_id = {:?}. val.ty = {:?}" ,
260
+ val. alloc_id,
261
+ val. ty
262
+ ) ;
259
263
validate_and_turn_into_const ( tcx, val, key)
260
264
} )
261
265
}
@@ -277,7 +281,9 @@ pub fn const_eval_raw_provider<'tcx>(
277
281
key. param_env . reveal = Reveal :: UserFacing ;
278
282
match tcx. const_eval_raw ( key) {
279
283
// try again with reveal all as requested
280
- Err ( ErrorHandled :: TooGeneric ) => { trace ! ( "const_eval_raw: retrying with RevealAll" ) ; }
284
+ Err ( ErrorHandled :: TooGeneric ) => {
285
+ trace ! ( "const_eval_raw: retrying with RevealAll" ) ;
286
+ }
281
287
// deduplicate calls
282
288
other => return other,
283
289
}
You can’t perform that action at this time.
0 commit comments