Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nightly as-if-std is failing on some targets with unused import std::* #574

Closed
ChrisDenton opened this issue Nov 6, 2023 · 0 comments · Fixed by #575
Closed

Nightly as-if-std is failing on some targets with unused import std::* #574

ChrisDenton opened this issue Nov 6, 2023 · 0 comments · Fixed by #575

Comments

@ChrisDenton
Copy link
Member

Specifically ubuntu-20.04, nightly, macos-latest, nightly and x86_64-fortanix-unknown-sgx. For example:

Run cargo build --manifest-path crates/as-if-std/Cargo.toml --no-default-features
  
   Compiling as-if-std v0.1.0 (/Users/runner/work/backtrace-rs/backtrace-rs/crates/as-if-std)
error: unused import: `std::*`
  --> crates/as-if-std/src/lib.rs:14:13
   |
14 |     pub use std::*;
   |             ^^^^^^
   |
   = note: `-D unused-imports` implied by `-D warnings`
   = help: to override `-D warnings` add `#[allow(unused_imports)]`

error: could not compile `as-if-std` (lib) due to previous error
Error: Process completed with exit code 101.

Apparently the #[allow(unused_imports)] on the re-export is no longer enough to satisfy it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant