diff options
| author | Ralf Jung <post@ralfj.de> | 2017-08-12 10:11:18 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-08-12 10:11:18 -0700 |
| commit | 5d60c614e644cda97758bba5eaa6feb6b0dc5854 (patch) | |
| tree | 5fb39eaa2a0e3ae2c948ccfa2251960d8974ef9f /src | |
| parent | dca1be68ffd210b8e5fd75ece221f2733eb9991a (diff) | |
| parent | 7e5d971c56f22f94a27bf87a307cfa191e7c98f5 (diff) | |
| download | rust-5d60c614e644cda97758bba5eaa6feb6b0dc5854.tar.gz rust-5d60c614e644cda97758bba5eaa6feb6b0dc5854.zip | |
Merge pull request #302 from RalfJung/mir-validate2
enable a test that waited for a rustc fix
Diffstat (limited to 'src')
| -rw-r--r-- | src/librustc_mir/interpret/memory.rs | 2 | ||||
| -rw-r--r-- | src/librustc_mir/interpret/value.rs | 1 |
2 files changed, 1 insertions, 2 deletions
diff --git a/src/librustc_mir/interpret/memory.rs b/src/librustc_mir/interpret/memory.rs index 56c051dcfad..9930555c199 100644 --- a/src/librustc_mir/interpret/memory.rs +++ b/src/librustc_mir/interpret/memory.rs @@ -1454,7 +1454,7 @@ impl<'a, 'tcx, M: Machine<'tcx>> Memory<'a, 'tcx, M> { return Ok(()); } let ptr = ptr.to_ptr()?; - let mut alloc = self.get_mut(ptr.alloc_id)?; + let alloc = self.get_mut(ptr.alloc_id)?; alloc.undef_mask.set_range( ptr.offset, ptr.offset + size, diff --git a/src/librustc_mir/interpret/value.rs b/src/librustc_mir/interpret/value.rs index 8424e72fef0..8abb0b86bf8 100644 --- a/src/librustc_mir/interpret/value.rs +++ b/src/librustc_mir/interpret/value.rs @@ -1,5 +1,4 @@ #![allow(unknown_lints)] -#![allow(float_cmp)] use rustc::ty::layout::HasDataLayout; |
