Skip to content

Commit ef29a29

Browse files
committed
lints: Warn rather than deny by default
We check with `-Dwarnings` in CI, so these still get checked. This change serves to prevent failures to compile downstream if the lint expectations are not met on untested targets. (backport <#4473>) (cherry picked from commit 260e357)
1 parent df6346d commit ef29a29

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@
2525
// DIFF(1.0): The thread local references that raise this lint were removed in 1.0
2626
#![cfg_attr(feature = "rustc-dep-of-std", allow(static_mut_refs))]
2727
// Enable extra lints:
28-
#![cfg_attr(feature = "extra_traits", deny(missing_debug_implementations))]
29-
#![deny(missing_copy_implementations, safe_packed_borrows)]
28+
#![cfg_attr(feature = "extra_traits", warn(missing_debug_implementations))]
29+
#![warn(missing_copy_implementations, safe_packed_borrows)]
3030
#![cfg_attr(not(feature = "rustc-dep-of-std"), no_std)]
3131
#![cfg_attr(feature = "rustc-dep-of-std", no_core)]
3232

0 commit comments

Comments
 (0)