Fix spans
This commit is contained in:
parent
0f7f3f4045
commit
3273ccea4b
11 changed files with 36 additions and 36 deletions
|
@ -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));
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue