Skip to content

Commit b4f217e

Browse files
committed
rustc_mir: remove wrong calls to subst_from_frame_and_normalize_erasing_regions.
1 parent d4196a7 commit b4f217e

File tree

2 files changed

+0
-2
lines changed

2 files changed

+0
-2
lines changed

src/librustc_mir/interpret/cast.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,6 @@ impl<'mir, 'tcx, M: Machine<'mir, 'tcx>> InterpCx<'mir, 'tcx, M> {
6767
// The src operand does not matter, just its type
6868
match src.layout.ty.sty {
6969
ty::Closure(def_id, substs) => {
70-
let substs = self.subst_from_frame_and_normalize_erasing_regions(substs)?;
7170
let instance = ty::Instance::resolve_closure(
7271
*self.tcx,
7372
def_id,

src/librustc_mir/interpret/traits.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,6 @@ impl<'mir, 'tcx, M: Machine<'mir, 'tcx>> InterpCx<'mir, 'tcx, M> {
7777
for (i, method) in methods.iter().enumerate() {
7878
if let Some((def_id, substs)) = *method {
7979
// resolve for vtable: insert shims where needed
80-
let substs = self.subst_from_frame_and_normalize_erasing_regions(substs)?;
8180
let instance = ty::Instance::resolve_for_vtable(
8281
*self.tcx,
8382
self.param_env,

0 commit comments

Comments
 (0)