Skip to content

Commit 7de83f0

Browse files
committed
Deny (by default) transmuting from fn item types to pointer-sized types.
1 parent 9316ae5 commit 7de83f0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustc/lint/builtin.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ declare_lint! {
157157

158158
declare_lint! {
159159
pub TRANSMUTE_FROM_FN_ITEM_TYPES,
160-
Warn,
160+
Deny,
161161
"transmute from function item type to pointer-sized type erroneously allowed"
162162
}
163163

0 commit comments

Comments
 (0)