Skip to content

Commit dc00413

Browse files
committed
Run RustFmt
1 parent 2bd7a23 commit dc00413

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

src/librustc/mir/interpret/queries.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
use super::{ConstEvalResult, ErrorHandled, GlobalId};
22

33
use crate::mir;
4+
use crate::ty::fold::TypeFoldable;
45
use crate::ty::subst::{InternalSubsts, SubstsRef};
56
use crate::ty::{self, TyCtxt};
6-
use crate::ty::fold::TypeFoldable;
77
use rustc_hir::def_id::DefId;
88
use rustc_span::Span;
99

src/librustc_mir/const_eval/eval_queries.rs

+8-2
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)