rust-lang / backtrace-rs

Backtraces in Rust
https://docs.rs/backtrace
Other
524 stars 240 forks source link

Fix deny(unused) of an unused import with SGX + Miri #581

Closed saethlin closed 5 months ago

saethlin commented 7 months ago

The deny(unused) use that used to be here is incompatible with building this crate with Miri. The import in question is only used in a module that is only declared when we are not cfg(miri).

I tried to fix this by grouping items into modules so that I could apply cfg(not(miri)) to all the SGX code. One could also make the build work by deleting the #[deny(unused)], but that felt hacky.