diff options
| author | Matthias Krüger <476013+matthiaskrgr@users.noreply.github.com> | 2025-09-26 06:36:32 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-09-26 06:36:32 +0200 |
| commit | b184550f0ede53826ac03aeb107c46e43e39d232 (patch) | |
| tree | d6178646b34d689435d0d75781b7e8c34ebff82e | |
| parent | 72fee890e2ae787bd78284f4491f08a8591bc618 (diff) | |
| parent | c98b3b2da46146956b982e4ae1747c3614a461fd (diff) | |
| download | rust-b184550f0ede53826ac03aeb107c46e43e39d232.tar.gz rust-b184550f0ede53826ac03aeb107c46e43e39d232.zip | |
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
| -rw-r--r-- | compiler/rustc_const_eval/src/util/caller_location.rs | 2 |
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, ); |
