File tree Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change 11use super :: { ConstEvalResult , ErrorHandled , GlobalId } ;
22
33use crate :: mir;
4+ use crate :: ty:: fold:: TypeFoldable ;
45use crate :: ty:: subst:: { InternalSubsts , SubstsRef } ;
56use crate :: ty:: { self , TyCtxt } ;
6- use crate :: ty:: fold:: TypeFoldable ;
77use rustc_hir:: def_id:: DefId ;
88use rustc_span:: Span ;
99
Original file line number Diff line number Diff line change @@ -255,7 +255,11 @@ pub fn const_eval_validated_provider<'tcx>(
255255 }
256256
257257 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+ ) ;
259263 validate_and_turn_into_const ( tcx, val, key)
260264 } )
261265}
@@ -277,7 +281,9 @@ pub fn const_eval_raw_provider<'tcx>(
277281 key. param_env . reveal = Reveal :: UserFacing ;
278282 match tcx. const_eval_raw ( key) {
279283 // 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+ }
281287 // deduplicate calls
282288 other => return other,
283289 }
You can’t perform that action at this time.
0 commit comments