diff --git a/compiler/rustc_lint_defs/src/builtin.rs b/compiler/rustc_lint_defs/src/builtin.rs index 5a369a0f45cd2..355b7f5ac314b 100644 --- a/compiler/rustc_lint_defs/src/builtin.rs +++ b/compiler/rustc_lint_defs/src/builtin.rs @@ -2912,7 +2912,7 @@ declare_lint! { /// lint, you can first cast to a `usize` and then to the integer type, e.g. `ptr as usize as /// u32`. pub INVALID_PTR_TO_INT_CAST, - Allow, + Deny, "detects pointers casts to integer types other than `usize` or `u64`", }