Skip to content

Commit c98b3b2

Browse files
cachebagRalfJung
andcommitted
const_caller_location: edit FIXME to explain use of DUMMY_SP
Co-authored-by: Ralf Jung <[email protected]>
1 parent e9385f9 commit c98b3b2

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)