Skip to content

Commit 424fa43

Browse files
committed
Annotate run-pass/backtrace with #[rustc_no_mir] on MSVC.
1 parent e3f2dfd commit 424fa43

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/test/run-pass/backtrace.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11+
#![feature(rustc_attrs)]
12+
1113
// no-pretty-expanded FIXME #15189
1214
// ignore-android FIXME #17520
1315
// compile-flags:-g
@@ -16,6 +18,8 @@ use std::env;
1618
use std::process::{Command, Stdio};
1719
use std::str;
1820

21+
// FIXME #31005 MIR missing debuginfo currently.
22+
#[cfg_attr(target_env = "msvc", rustc_no_mir)]
1923
#[inline(never)]
2024
fn foo() {
2125
let _v = vec![1, 2, 3];
@@ -24,6 +28,8 @@ fn foo() {
2428
}
2529
}
2630

31+
// FIXME #31005 MIR missing debuginfo currently.
32+
#[cfg_attr(target_env = "msvc", rustc_no_mir)]
2733
#[inline(never)]
2834
fn double() {
2935
struct Double;

0 commit comments

Comments
 (0)