Temporarily switch invalid_reference_casting lint to allow-by-default
This commit is contained in:
parent
fa15df6f5a
commit
f25ad54a4d
5 changed files with 20 additions and 23 deletions
|
@ -12,6 +12,7 @@ declare_lint! {
|
|||
/// ### Example
|
||||
///
|
||||
/// ```rust,compile_fail
|
||||
/// # #![deny(invalid_reference_casting)]
|
||||
/// fn x(r: &i32) {
|
||||
/// unsafe {
|
||||
/// *(r as *const i32 as *mut i32) += 1;
|
||||
|
@ -29,7 +30,7 @@ declare_lint! {
|
|||
/// `UnsafeCell` is the only way to obtain aliasable data that is considered
|
||||
/// mutable.
|
||||
INVALID_REFERENCE_CASTING,
|
||||
Deny,
|
||||
Allow,
|
||||
"casts of `&T` to `&mut T` without interior mutability"
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue