Skip to content

Commit

Permalink
rustc_mir: remove wrong calls to subst_from_frame_and_normalize_erasi…
Browse files Browse the repository at this point in the history
…ng_regions.
  • Loading branch information
eddyb committed Aug 19, 2019
1 parent d4196a7 commit b4f217e
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion src/librustc_mir/interpret/cast.rs
Expand Up @@ -67,7 +67,6 @@ impl<'mir, 'tcx, M: Machine<'mir, 'tcx>> InterpCx<'mir, 'tcx, M> {
// The src operand does not matter, just its type
match src.layout.ty.sty {
ty::Closure(def_id, substs) => {
let substs = self.subst_from_frame_and_normalize_erasing_regions(substs)?;
let instance = ty::Instance::resolve_closure(
*self.tcx,
def_id,
Expand Down
1 change: 0 additions & 1 deletion src/librustc_mir/interpret/traits.rs
Expand Up @@ -77,7 +77,6 @@ impl<'mir, 'tcx, M: Machine<'mir, 'tcx>> InterpCx<'mir, 'tcx, M> {
for (i, method) in methods.iter().enumerate() {
if let Some((def_id, substs)) = *method {
// resolve for vtable: insert shims where needed
let substs = self.subst_from_frame_and_normalize_erasing_regions(substs)?;
let instance = ty::Instance::resolve_for_vtable(
*self.tcx,
self.param_env,
Expand Down

0 comments on commit b4f217e

Please sign in to comment.