about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorRalf Jung <post@ralfj.de>2017-09-14 11:00:45 +0200
committerGitHub <noreply@github.com>2017-09-14 11:00:45 +0200
commit02e09dc187a8fa972768126ead54f89c0206db7a (patch)
treedd80bf8a74c447a76a729898ea4877e302a9b3bf /src
parent237590ada34b554abc1df14f3c57677f79d4ed73 (diff)
parentca0f063489d61e14b72cfb46e9d5e0403e361af6 (diff)
downloadrust-02e09dc187a8fa972768126ead54f89c0206db7a.tar.gz
rust-02e09dc187a8fa972768126ead54f89c0206db7a.zip
Merge pull request #337 from RalfJung/rustup
rustup
Diffstat (limited to 'src')
-rw-r--r--src/librustc_mir/interpret/validation.rs17
1 files changed, 0 insertions, 17 deletions
diff --git a/src/librustc_mir/interpret/validation.rs b/src/librustc_mir/interpret/validation.rs
index 251bd71ffce..23bb0d8dbb7 100644
--- a/src/librustc_mir/interpret/validation.rs
+++ b/src/librustc_mir/interpret/validation.rs
@@ -398,23 +398,6 @@ impl<'a, 'tcx, M: Machine<'tcx>> EvalContext<'a, 'tcx, M> {
             }
         }
 
-        // HACK: For now, bail out if we hit a dead local during recovery (can happen because sometimes we have
-        // StorageDead before EndRegion due to https://github.com/rust-lang/rust/issues/43481).
-        // TODO: We should rather fix the MIR.
-        match query.lval.1 {
-            Lvalue::Local { frame, local } => {
-                let res = self.stack[frame].get_local(local);
-                match (res, mode) {
-                    (Err(EvalError { kind: EvalErrorKind::DeadLocal, .. }),
-                     ValidationMode::Recover(_)) => {
-                        return Ok(());
-                    }
-                    _ => {}
-                }
-            }
-            _ => {}
-        }
-
         query.ty = self.normalize_type_unerased(&query.ty);
         trace!("{:?} on {:?}", mode, query);