]> git.lizzy.rs Git - rust.git/blobdiff - src/test/run-make/debug-assertions/debug.rs
Add #[rustc_no_mir] to make tests pass with -Z orbit.
[rust.git] / src / test / run-make / debug-assertions / debug.rs
index a0ccc75afd05b5c6ea9f0029dc69049abd7d444c..fb54161c2c127db8dafd85cd069a9905bc173a89 100644 (file)
@@ -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);