about summary refs log tree commit diff
path: root/src/test/run-make/debug-assertions/debug.rs
diff options
context:
space:
mode:
authorEduard Burtescu <edy.burt@gmail.com>2016-03-10 21:20:09 +0200
committerEduard Burtescu <edy.burt@gmail.com>2016-03-17 22:48:07 +0200
commit473f804491772fe9a31f4096c3ec8da121fc8294 (patch)
treec487b55e6a1e18350639e5fc52485fb828bacc44 /src/test/run-make/debug-assertions/debug.rs
parent080bd97781ee419722df8394a0155b5db069a490 (diff)
downloadrust-473f804491772fe9a31f4096c3ec8da121fc8294.tar.gz
rust-473f804491772fe9a31f4096c3ec8da121fc8294.zip
Add #[rustc_no_mir] to make tests pass with -Z orbit.
Diffstat (limited to 'src/test/run-make/debug-assertions/debug.rs')
-rw-r--r--src/test/run-make/debug-assertions/debug.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/test/run-make/debug-assertions/debug.rs b/src/test/run-make/debug-assertions/debug.rs
index a0ccc75afd0..fb54161c2c1 100644
--- a/src/test/run-make/debug-assertions/debug.rs
+++ b/src/test/run-make/debug-assertions/debug.rs
@@ -8,6 +8,7 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+#![feature(rustc_attrs)]
 #![deny(warnings)]
 
 use std::env;
@@ -36,6 +37,7 @@ fn debug_assert() {
 }
 
 fn overflow() {
+    #[rustc_no_mir] // FIXME #29769 MIR overflow checking is TBD.
     fn add(a: u8, b: u8) -> u8 { a + b }
 
     add(200u8, 200u8);