about summary refs log tree commit diff
path: root/compiler/rustc_const_eval/src
diff options
context:
space:
mode:
authorMichael Goulet <michael@errs.io>2024-06-12 13:06:23 -0400
committerMichael Goulet <michael@errs.io>2024-07-02 15:48:48 -0400
commit9dc129ae829f8f322421dc9fb2c64d58e11eb08a (patch)
treecd29c098d1a143a3a9b4b8ff255e86c6718dd3fe /compiler/rustc_const_eval/src
parentd3a742bde999add41c002513fccd0949859128f4 (diff)
downloadrust-9dc129ae829f8f322421dc9fb2c64d58e11eb08a.tar.gz
rust-9dc129ae829f8f322421dc9fb2c64d58e11eb08a.zip
Give Instance::expect_resolve a span
Diffstat (limited to 'compiler/rustc_const_eval/src')
-rw-r--r--compiler/rustc_const_eval/src/const_eval/machine.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/rustc_const_eval/src/const_eval/machine.rs b/compiler/rustc_const_eval/src/const_eval/machine.rs
index 99276bac035..cb3288402c1 100644
--- a/compiler/rustc_const_eval/src/const_eval/machine.rs
+++ b/compiler/rustc_const_eval/src/const_eval/machine.rs
@@ -253,6 +253,7 @@ impl<'tcx> CompileTimeInterpCx<'tcx> {
                 ty::ParamEnv::reveal_all(),
                 const_def_id,
                 instance.args,
+                Some(self.find_closest_untracked_caller_location()),
             );
 
             return Ok(Some(new_instance));