1
Fork 0

make pointer_structural_match warn-by-default

This commit is contained in:
Ralf Jung 2023-10-20 08:39:54 +02:00
parent af6c7e0ca1
commit 70a8e157ab
8 changed files with 223 additions and 26 deletions

View file

@ -2226,7 +2226,7 @@ declare_lint! {
/// in different crates and not deduplicated again via LTO. Pointer identity for memory
/// created by `const` is similarly unreliable.
pub POINTER_STRUCTURAL_MATCH,
Allow,
Warn,
"pointers are not structural-match",
@future_incompatible = FutureIncompatibleInfo {
reason: FutureIncompatibilityReason::FutureReleaseErrorDontReportInDeps,