diff options
| author | bors <bors@rust-lang.org> | 2016-08-25 11:28:30 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2016-08-25 11:28:30 -0700 |
| commit | 71bdeea561355ba5adbc9a1f44f4f866a75a15c4 (patch) | |
| tree | 71d503a748638203d6933540feb709725ee85f49 | |
| parent | 528c6f3ed6a23a374dc5a40582d1bea2f2cfda65 (diff) | |
| parent | 7de83f085856eda5e54bd02713267101ac015c1a (diff) | |
Auto merge of #34923 - eddyb:deny-fn-item-transmute, r=nikomatsakis
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`.
| -rw-r--r-- | src/librustc/lint/builtin.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustc/lint/builtin.rs b/src/librustc/lint/builtin.rs index f0ddcdc07e1..b2ee38741fc 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" } |
