Skip to content
Myr

Disable backtrace test on miri

Before adoption: this commit came in with the history the project adopted, so no landing records it.

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 <https://github.com/rust-lang/rust/issues/53487> for more information = help: add `#![feature(backtrace)]` to the crate attributes to enable

authored by David Tolnay · committed by David Tolnay · parent ffb25df · Browse files · 1 file+2 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+2 added−0 removed

  • tests:+2 added−0 removed

1 file+2 added−0 removed

modified:tests/test_backtrace.rs+2 added
1#![cfg(not(miri))]23#[rustversion::not(nightly)]4#[ignore]5#[test]6fn test_backtrace() {}
9 unmodified lines