diff options
| author | Urgau <urgau@numericable.fr> | 2023-07-14 21:54:27 +0200 |
|---|---|---|
| committer | Urgau <urgau@numericable.fr> | 2023-07-29 12:20:59 +0200 |
| commit | 345d6b816b8b131bc592f2aa532e1b3aeef23d0b (patch) | |
| tree | d51906aa102e3feae71c5ed413afb4b4b8c2f0e3 /compiler/rustc_lint/src/reference_casting.rs | |
| parent | 04411507bef1d2db441acdc1d89268f0cbaaccbc (diff) | |
| download | rust-345d6b816b8b131bc592f2aa532e1b3aeef23d0b.tar.gz rust-345d6b816b8b131bc592f2aa532e1b3aeef23d0b.zip | |
Revert "Temporarily switch invalid_reference_casting lint to allow-by-default"
This reverts commit f25ad54a4d0febbcb2b7e951835228b7b2320b49.
Diffstat (limited to 'compiler/rustc_lint/src/reference_casting.rs')
| -rw-r--r-- | compiler/rustc_lint/src/reference_casting.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/compiler/rustc_lint/src/reference_casting.rs b/compiler/rustc_lint/src/reference_casting.rs index d343aaf35d5..1a172dd6942 100644 --- a/compiler/rustc_lint/src/reference_casting.rs +++ b/compiler/rustc_lint/src/reference_casting.rs @@ -12,7 +12,6 @@ declare_lint! { /// ### Example /// /// ```rust,compile_fail - /// # #![deny(invalid_reference_casting)] /// fn x(r: &i32) { /// unsafe { /// *(r as *const i32 as *mut i32) += 1; @@ -30,7 +29,7 @@ declare_lint! { /// `UnsafeCell` is the only way to obtain aliasable data that is considered /// mutable. INVALID_REFERENCE_CASTING, - Allow, + Deny, "casts of `&T` to `&mut T` without interior mutability" } |
