Skip to content

Commit 70b1487

Browse files
committed
Alow static_mut_refs with rustc-dep-of-std
This combination raises an error suggesting `&raw mut errno`. This was removed in 1.0, but allow the lint on 0.2 for now.
1 parent 96db1f4 commit 70b1487

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@
2222
#![cfg_attr(feature = "rustc-dep-of-std", feature(link_cfg, no_core))]
2323
#![cfg_attr(libc_thread_local, feature(thread_local))]
2424
#![cfg_attr(feature = "rustc-dep-of-std", allow(internal_features))]
25+
// DIFF(1.0): The thread local references that raise this lint were removed in 1.0
26+
#![cfg_attr(feature = "rustc-dep-of-std", allow(static_mut_refs))]
2527
// Enable extra lints:
2628
#![cfg_attr(feature = "extra_traits", deny(missing_debug_implementations))]
2729
#![deny(missing_copy_implementations, safe_packed_borrows)]

0 commit comments

Comments
 (0)