Skip to content

Commit b184550

Browse files
authored
Rollup merge of #146991 - cachebag:span-caller-location, r=RalfJung
const_caller_location to use real Span instead of `DUMMY_SP` Clarifying usage of DUMMY_SP
2 parents 72fee89 + c98b3b2 commit b184550

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/rustc_const_eval/src/util/caller_location.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ pub(crate) fn const_caller_location_provider(
6161
trace!("const_caller_location: {}:{}:{}", file, line, col);
6262
let mut ecx = mk_eval_cx_to_read_const_val(
6363
tcx,
64-
rustc_span::DUMMY_SP, // FIXME: use a proper span here?
64+
rustc_span::DUMMY_SP, // This interpreter cannot fail, so the span is irrelevant.
6565
ty::TypingEnv::fully_monomorphized(),
6666
CanAccessMutGlobal::No,
6767
);

0 commit comments

Comments
 (0)