diff options
| author | Patrick Walton <pcwalton@mimiga.net> | 2014-06-12 14:08:44 -0700 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2014-06-13 13:53:55 -0700 |
| commit | c9f3f47702602d196de414aa4f10bb2c2148ab9a (patch) | |
| tree | 9a1b3943e8b6f01f77750333547178f2b92ce7ee /src/rustllvm/RustWrapper.cpp | |
| parent | 8c4a10a159a021a586a8a35552cbbe4f60e644a2 (diff) | |
| download | rust-c9f3f47702602d196de414aa4f10bb2c2148ab9a.tar.gz rust-c9f3f47702602d196de414aa4f10bb2c2148ab9a.zip | |
librustc: Forbid `transmute` from being called on types whose size is
only known post-monomorphization, and report `transmute` errors before
the code is generated for that `transmute`.
This can break code that looked like:
unsafe fn f<T>(x: T) {
let y: int = transmute(x);
}
Change such code to take a type parameter that has the same size as the
type being transmuted to.
Closes #12898.
[breaking-change]
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
