From 46b58196747968df3a8f4684c3a4acfd54cd578f Mon Sep 17 00:00:00 2001 From: Steve Klabnik Date: Mon, 8 Aug 2016 14:27:43 -0400 Subject: [PATCH] Remove ICEs that are now fixed. I have a hunch these are due to MIR. Nice! --- src/21073.rs | 8 -------- src/22894.rs | 3 --- src/24599.rs | 4 ---- src/26263.rs | 5 ----- src/26989.rs | 7 ------- src/27249.rs | 5 ----- src/27455.rs | 7 ------- src/28104.rs | 4 ---- src/30386.rs | 3 --- 9 files changed, 46 deletions(-) delete mode 100644 src/21073.rs delete mode 100644 src/22894.rs delete mode 100644 src/24599.rs delete mode 100644 src/26263.rs delete mode 100644 src/26989.rs delete mode 100644 src/27249.rs delete mode 100644 src/27455.rs delete mode 100644 src/28104.rs delete mode 100644 src/30386.rs diff --git a/src/21073.rs b/src/21073.rs deleted file mode 100644 index cf9642e7..00000000 --- a/src/21073.rs +++ /dev/null @@ -1,8 +0,0 @@ -const TAG: &'static [u8] = b"ABCD"; - -fn main() { - match &[][..] { - TAG => println!("Yes."), - _ => println!("No."), - } -} diff --git a/src/22894.rs b/src/22894.rs deleted file mode 100644 index 24291e68..00000000 --- a/src/22894.rs +++ /dev/null @@ -1,3 +0,0 @@ -fn main() { - (*"abc").len(); -} diff --git a/src/24599.rs b/src/24599.rs deleted file mode 100644 index 2198dbf9..00000000 --- a/src/24599.rs +++ /dev/null @@ -1,4 +0,0 @@ -#![crate_type="rlib"] -fn test() -> (u8,) { - (-1.0 as u8,) -} diff --git a/src/26263.rs b/src/26263.rs deleted file mode 100644 index 99c2d7f3..00000000 --- a/src/26263.rs +++ /dev/null @@ -1,5 +0,0 @@ -static mut TEST: [isize; 1] = [1]; -static mut TEST2: &'static mut [isize] = unsafe { &mut TEST }; -fn main() { - println!("{}", unsafe { TEST2[0] }); -} diff --git a/src/26989.rs b/src/26989.rs deleted file mode 100644 index d57f99ea..00000000 --- a/src/26989.rs +++ /dev/null @@ -1,7 +0,0 @@ -fn main() { - match (0, 0) { - (0, ref _a) => {} - (_, 0) => {} - _ => {} - } -} diff --git a/src/27249.rs b/src/27249.rs deleted file mode 100644 index 13b8f947..00000000 --- a/src/27249.rs +++ /dev/null @@ -1,5 +0,0 @@ -const FOO: u32 = 5; - -fn main() { - FOO; -} diff --git a/src/27455.rs b/src/27455.rs deleted file mode 100644 index c8d00cec..00000000 --- a/src/27455.rs +++ /dev/null @@ -1,7 +0,0 @@ -trait SomeTrait {} -impl SomeTrait for i32 {} -struct Component(T); -fn main() { - let ref c = Component(42); - let &Component(ref data) = c as &Component; -} diff --git a/src/28104.rs b/src/28104.rs deleted file mode 100644 index 488f763a..00000000 --- a/src/28104.rs +++ /dev/null @@ -1,4 +0,0 @@ -fn main() { - std::u8::MAX; -} - diff --git a/src/30386.rs b/src/30386.rs deleted file mode 100644 index 9af9b9ca..00000000 --- a/src/30386.rs +++ /dev/null @@ -1,3 +0,0 @@ -fn main() { - let _ = &*"string"; -}