Fix spans

This commit is contained in:
Michael Goulet 2024-07-01 16:32:32 -04:00
parent 0f7f3f4045
commit 3273ccea4b
11 changed files with 36 additions and 36 deletions

View file

@ -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));

View file

@ -888,6 +888,7 @@ impl<'tcx, M: Machine<'tcx>> InterpCx<'tcx, M> {
self.param_env,
def_id,
instance.args.rebase_onto(tcx, trait_def_id, concrete_trait_ref.args),
self.cur_span(),
);
assert_eq!(fn_inst, concrete_method);
}