Skip to content

Commit

Permalink
Auto merge of #34923 - eddyb:deny-fn-item-transmute, r=nikomatsakis
Browse files Browse the repository at this point in the history
Deny (by default) transmuting from fn item types to pointer-sized types.

This sets the #19925 lint (transmute from zero-sized fn item type) to `deny` by default.
Technically a `[breaking-change]`, but will not affect dependent crates because of `--cap-lints`.
  • Loading branch information
bors authored Aug 25, 2016
2 parents 528c6f3 + 7de83f0 commit 71bdeea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/librustc/lint/builtin.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}

Expand Down

0 comments on commit 71bdeea

Please sign in to comment.