Skip to content

Commit 8d25d6b

Browse files
committed
Disable backtrace test on miri
Starting in the most recent release of miri, the build.rs probe fails to build even on nightly toolchain with one of the following errors: error: miri can only run programs that have a main function error: the current sysroot was built without `-Zalways-encode-mir`, or libcore seems missing. Use `cargo miri setup` to prepare a sysroot that is suitable for Miri. which causes anyhow::Error's backtrace() inherent method to not exist. error[E0658]: use of unstable library feature 'backtrace' --> tests/test_backtrace.rs:20:19 | 20 | let _ = error.backtrace(); | ^^^^^^^^^ | = note: see issue 53487 <rust-lang/rust#53487> for more information = help: add `#![feature(backtrace)]` to the crate attributes to enable
1 parent ffb25df commit 8d25d6b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/test_backtrace.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#![cfg(not(miri))]
2+
13
#[rustversion::not(nightly)]
24
#[ignore]
35
#[test]

0 commit comments

Comments
 (0)