about summary refs log tree commit diff
path: root/compiler/rustc_const_eval/src/const_eval
diff options
context:
space:
mode:
authorMichael Goulet <michael@errs.io>2024-07-01 16:32:32 -0400
committerMichael Goulet <michael@errs.io>2024-07-02 15:48:48 -0400
commit3273ccea4b2c1995a7ddd059657ded593eb859c9 (patch)
treea829312f5f71ab8d94bde4fec27571120bc19960 /compiler/rustc_const_eval/src/const_eval
parent0f7f3f4045a3b34678584a4148ff452f8a072904 (diff)
downloadrust-3273ccea4b2c1995a7ddd059657ded593eb859c9.tar.gz
rust-3273ccea4b2c1995a7ddd059657ded593eb859c9.zip
Fix spans
Diffstat (limited to 'compiler/rustc_const_eval/src/const_eval')
-rw-r--r--compiler/rustc_const_eval/src/const_eval/machine.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_const_eval/src/const_eval/machine.rs b/compiler/rustc_const_eval/src/const_eval/machine.rs
index cb3288402c1..17e1d8566c2 100644
--- a/compiler/rustc_const_eval/src/const_eval/machine.rs
+++ b/compiler/rustc_const_eval/src/const_eval/machine.rs
@@ -253,7 +253,7 @@ impl<'tcx> CompileTimeInterpCx<'tcx> {
                 ty::ParamEnv::reveal_all(),
                 const_def_id,
                 instance.args,
-                Some(self.find_closest_untracked_caller_location()),
+                self.cur_span(),
             );
 
             return Ok(Some(new_instance));