Revert "Temporarily switch invalid_reference_casting lint to allow-by-default"

This reverts commit f25ad54a4d.
This commit is contained in:
Urgau 2023-07-14 21:54:27 +02:00
parent 04411507be
commit 345d6b816b
5 changed files with 23 additions and 20 deletions

View file

@ -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"
}