]> git.lizzy.rs Git - rust.git/commitdiff
Annotate run-pass/backtrace with #[rustc_no_mir] on MSVC.
authorEduard Burtescu <edy.burt@gmail.com>
Wed, 23 Mar 2016 00:59:02 +0000 (02:59 +0200)
committerEduard Burtescu <edy.burt@gmail.com>
Wed, 23 Mar 2016 00:59:02 +0000 (02:59 +0200)
src/test/run-pass/backtrace.rs

index 3fb52f8c8b4dc321c8efee9e89b15c05755401de..2a98706351a8b6797427b59feba16291e6ad7a73 100644 (file)
@@ -8,6 +8,8 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+#![feature(rustc_attrs)]
+
 // no-pretty-expanded FIXME #15189
 // ignore-android FIXME #17520
 // compile-flags:-g
@@ -16,6 +18,8 @@
 use std::process::{Command, Stdio};
 use std::str;
 
+// FIXME #31005 MIR missing debuginfo currently.
+#[cfg_attr(target_env = "msvc", rustc_no_mir)]
 #[inline(never)]
 fn foo() {
     let _v = vec![1, 2, 3];
@@ -24,6 +28,8 @@ fn foo() {
     }
 }
 
+// FIXME #31005 MIR missing debuginfo currently.
+#[cfg_attr(target_env = "msvc", rustc_no_mir)]
 #[inline(never)]
 fn double() {
     struct Double;