]> git.lizzy.rs Git - rust.git/commit
Overhaul cast semantics and make them follow RFC401
authorAriel Ben-Yehuda <arielb1@mail.tau.ac.il>
Tue, 5 May 2015 16:36:47 +0000 (19:36 +0300)
committerAriel Ben-Yehuda <ariel.byd@gmail.com>
Tue, 19 May 2015 14:42:14 +0000 (17:42 +0300)
commit83acebc46213e30eac3e9e71b213440104914f4c
tree340faa875f6734c4fb7d3def83a5e68b204134a4
parenta172f4022dd8d63607860733f0ae8647d4651090
Overhaul cast semantics and make them follow RFC401

This should hopefully fix all cast-related ICEs once and for all.

I managed to make diagnostics hate me and give me spurious "decoder error"
 - removing $build/tmp/extended-errors seems to fix it.
16 files changed:
src/librustc/diagnostics.rs
src/librustc/lib.rs
src/librustc/metadata/common.rs
src/librustc/middle/astencode.rs
src/librustc/middle/cast.rs [new file with mode: 0644]
src/librustc/middle/check_const.rs
src/librustc/middle/const_eval.rs
src/librustc/middle/ty.rs
src/librustc_trans/trans/consts.rs
src/librustc_trans/trans/expr.rs
src/librustc_typeck/check/cast.rs
src/librustc_typeck/check/mod.rs
src/librustc_typeck/diagnostics.rs
src/librustc_typeck/lib.rs
src/test/compile-fail/fat-ptr-cast.rs
src/test/compile-fail/issue-22289.rs