Skip to content

Commit

Permalink
Alow static_mut_refs with rustc-dep-of-std
Browse files Browse the repository at this point in the history
This combination raises an error suggesting `&raw mut errno`. This was
removed in 1.0, but allow the lint on 0.2 for now.
  • Loading branch information
tgross35 committed Nov 28, 2024
1 parent 96db1f4 commit 70b1487
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@
#![cfg_attr(feature = "rustc-dep-of-std", feature(link_cfg, no_core))]
#![cfg_attr(libc_thread_local, feature(thread_local))]
#![cfg_attr(feature = "rustc-dep-of-std", allow(internal_features))]
// DIFF(1.0): The thread local references that raise this lint were removed in 1.0
#![cfg_attr(feature = "rustc-dep-of-std", allow(static_mut_refs))]
// Enable extra lints:
#![cfg_attr(feature = "extra_traits", deny(missing_debug_implementations))]
#![deny(missing_copy_implementations, safe_packed_borrows)]
Expand Down

0 comments on commit 70b1487

Please sign in to comment.