diff options
| author | Ralf Jung <post@ralfj.de> | 2023-10-20 08:39:54 +0200 |
|---|---|---|
| committer | Ralf Jung <post@ralfj.de> | 2023-10-28 17:02:18 +0200 |
| commit | 70a8e157ab485a775c1f648ad7967ffc3535c5b9 (patch) | |
| tree | 97e009bb9ba254ab2dfcb6b6bf11f66ffb61ba0d /compiler | |
| parent | af6c7e0ca154fe4c14b29405e1970b824095920d (diff) | |
| download | rust-70a8e157ab485a775c1f648ad7967ffc3535c5b9.tar.gz rust-70a8e157ab485a775c1f648ad7967ffc3535c5b9.zip | |
make pointer_structural_match warn-by-default
Diffstat (limited to 'compiler')
| -rw-r--r-- | compiler/rustc_lint_defs/src/builtin.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_lint_defs/src/builtin.rs b/compiler/rustc_lint_defs/src/builtin.rs index f033504c523..bef9f469cc6 100644 --- a/compiler/rustc_lint_defs/src/builtin.rs +++ b/compiler/rustc_lint_defs/src/builtin.rs @@ -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, |
