From 81df07d7d882b54a9ef2743709261889f64ca911 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=96mer=20Sinan=20A=C4=9Facan?= Date: Sat, 3 Apr 2021 12:06:30 +0300 Subject: [PATCH] Make it deny by default, for testing --- compiler/rustc_lint_defs/src/builtin.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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`", }