]> git.lizzy.rs Git - rust.git/commit
improve cast handling - this fixes test failures
authorAriel Ben-Yehuda <arielb1@mail.tau.ac.il>
Wed, 25 Nov 2015 16:17:16 +0000 (18:17 +0200)
committerNiko Matsakis <niko@alum.mit.edu>
Sat, 9 Jan 2016 01:20:02 +0000 (20:20 -0500)
commita3cbfa58be12a3ae0c4efd71c3e8c39554924e08
treebb7a9cdb5a42db2b79224e55135d1b5c89e67337
parent77756cb12ae718cd3b20c0da2b3b89c881910b1d
improve cast handling - this fixes test failures

the problem is that now "type_is_known_to_be_sized" now returns
false when called on a type with ty_err inside - this prevents
spurious errors (we may want to move the check to check::cast
anyway - see #12894).
src/librustc_typeck/check/mod.rs