about summary refs log tree commit diff
diff options
context:
space:
mode:
authorAkrm Al-Hakimi <alhakimiakrmj@gmail.com>2025-09-25 13:57:59 -0400
committerAkrm Al-Hakimi <alhakimiakrmj@gmail.com>2025-09-25 16:09:27 -0400
commitc98b3b2da46146956b982e4ae1747c3614a461fd (patch)
tree6812374d47da6d58437c1227c7a713b58f441081
parente9385f9eea0221ef295a188d49d16f8f5189abf1 (diff)
downloadrust-c98b3b2da46146956b982e4ae1747c3614a461fd.tar.gz
rust-c98b3b2da46146956b982e4ae1747c3614a461fd.zip
const_caller_location: edit FIXME to explain use of `DUMMY_SP`
Co-authored-by: Ralf Jung <post@ralfj.de>
-rw-r--r--compiler/rustc_const_eval/src/util/caller_location.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_const_eval/src/util/caller_location.rs b/compiler/rustc_const_eval/src/util/caller_location.rs
index 5249b32eca4..4e7c8310007 100644
--- a/compiler/rustc_const_eval/src/util/caller_location.rs
+++ b/compiler/rustc_const_eval/src/util/caller_location.rs
@@ -61,7 +61,7 @@ pub(crate) fn const_caller_location_provider(
     trace!("const_caller_location: {}:{}:{}", file, line, col);
     let mut ecx = mk_eval_cx_to_read_const_val(
         tcx,
-        rustc_span::DUMMY_SP, // FIXME: use a proper span here?
+        rustc_span::DUMMY_SP, // This interpreter cannot fail, so the span is irrelevant.
         ty::TypingEnv::fully_monomorphized(),
         CanAccessMutGlobal::No,
     );