Skip to content

Commit 6ca5571

Browse files
committed
Warn on missing debug implementations
This was removed by accident; only the `feature = "rustc-dep-of-std"` gate should have been removed. Fixes: a6e7563 ("Always implement `Debug`") (backport <#4715>) (cherry picked from commit 833eb19)
1 parent e653c54 commit 6ca5571

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/lib.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,11 @@
99
unused_macros,
1010
unused_macro_rules,
1111
)]
12+
#![warn(
13+
missing_copy_implementations,
14+
missing_debug_implementations,
15+
safe_packed_borrows
16+
)]
1217
// Prepare for a future upgrade
1318
#![warn(rust_2024_compatibility)]
1419
// Things missing for 2024 that are blocked on MSRV or breakage
@@ -25,7 +30,6 @@
2530
#![cfg_attr(feature = "rustc-dep-of-std", allow(internal_features))]
2631
// DIFF(1.0): The thread local references that raise this lint were removed in 1.0
2732
#![cfg_attr(feature = "rustc-dep-of-std", allow(static_mut_refs))]
28-
#![warn(missing_copy_implementations, safe_packed_borrows)]
2933
#![cfg_attr(not(feature = "rustc-dep-of-std"), no_std)]
3034
#![cfg_attr(feature = "rustc-dep-of-std", no_core)]
3135

0 commit comments

Comments
 (0)