From 7de83f085856eda5e54bd02713267101ac015c1a Mon Sep 17 00:00:00 2001 From: Eduard Burtescu Date: Tue, 19 Jul 2016 20:55:46 +0300 Subject: [PATCH] Deny (by default) transmuting from fn item types to pointer-sized types. --- src/librustc/lint/builtin.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/librustc/lint/builtin.rs b/src/librustc/lint/builtin.rs index 3230a08c276..8db1fd92530 100644 --- a/src/librustc/lint/builtin.rs +++ b/src/librustc/lint/builtin.rs @@ -157,7 +157,7 @@ declare_lint! { declare_lint! { pub TRANSMUTE_FROM_FN_ITEM_TYPES, - Warn, + Deny, "transmute from function item type to pointer-sized type erroneously allowed" }