diff options
| author | Eduard Burtescu <edy.burt@gmail.com> | 2016-05-03 01:57:35 +0300 |
|---|---|---|
| committer | Eduard Burtescu <edy.burt@gmail.com> | 2016-05-07 19:14:32 +0300 |
| commit | 4f5900aefac42cec488a68c041ecd538c04b84fd (patch) | |
| tree | a27eb77ecb3c2e47bcb8924c18329c2e0cb66901 /src/test/run-pass | |
| parent | 78884b765915c551e5f3fe71b185d91ec4c186de (diff) | |
| download | rust-4f5900aefac42cec488a68c041ecd538c04b84fd.tar.gz rust-4f5900aefac42cec488a68c041ecd538c04b84fd.zip | |
test: adjust for the move to MIR-based const checking.
Diffstat (limited to 'src/test/run-pass')
| -rw-r--r-- | src/test/run-pass/const-str-ptr.rs | 5 | ||||
| -rw-r--r-- | src/test/run-pass/mir_raw_fat_ptr.rs | 1 |
2 files changed, 0 insertions, 6 deletions
diff --git a/src/test/run-pass/const-str-ptr.rs b/src/test/run-pass/const-str-ptr.rs index 1736ab5bb82..f58bf4fc39f 100644 --- a/src/test/run-pass/const-str-ptr.rs +++ b/src/test/run-pass/const-str-ptr.rs @@ -8,17 +8,12 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. -#![feature(rustc_attrs)] - -// ignore-pretty : (#23623) problems when ending with // comments - use std::{str, string}; const A: [u8; 2] = ['h' as u8, 'i' as u8]; const B: &'static [u8; 2] = &A; const C: *const u8 = B as *const u8; -#[rustc_no_mir] // FIXME #27840 MIR can't do rvalue promotion yet. pub fn main() { unsafe { let foo = &A as *const u8; diff --git a/src/test/run-pass/mir_raw_fat_ptr.rs b/src/test/run-pass/mir_raw_fat_ptr.rs index c0ba7a76dba..a632f00d9ee 100644 --- a/src/test/run-pass/mir_raw_fat_ptr.rs +++ b/src/test/run-pass/mir_raw_fat_ptr.rs @@ -121,7 +121,6 @@ impl<T> Foo for T { struct S<T:?Sized>(u32, T); -#[rustc_no_mir] // FIXME #27840 MIR can't do rvalue promotion yet. fn main() { let array = [0,1,2,3,4]; let array2 = [5,6,7,8,9]; |
