Skip to content

Commit 3fd144d

Browse files
committed
Rollup merge of #32437 - eddyb:orbital-msvc, r=alexcrichton
Annotate run-pass/backtrace with #[rustc_no_mir] on MSVC. Fixes #32384 by not using MIR on MSVC for the functions in the path of the backtrace. This is the known blocker for the MSVC MIR builder, hopefully the only one overall. r? @alexcrichton Confirmed to work on a nightly, by @retep998.
2 parents 2acad9c + 424fa43 commit 3fd144d

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/test/run-pass/backtrace.rs

+6
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)