]> git.lizzy.rs Git - rust.git/commitdiff
Auto merge of #34198 - eddyb:you're-a-bad-transmute-and-you-should-feel-bad, r=nikoma...
authorbors <bors@rust-lang.org>
Wed, 1 Mar 2017 10:03:44 +0000 (10:03 +0000)
committerbors <bors@rust-lang.org>
Wed, 1 Mar 2017 10:03:44 +0000 (10:03 +0000)
Make transmuting from fn item types to pointer-sized types a hard error.

Closes #19925 by removing the future compatibility lint and the associated workarounds.
This is a `[breaking-change]` if you `transmute` from a function item without casting first.
For more information on how to fix your code, see https://github.com/rust-lang/rust/issues/19925.

1  2 
src/librustc/lint/builtin.rs
src/librustc_lint/lib.rs

Simple merge
Simple merge