]> git.lizzy.rs Git - rust.git/commitdiff
Rollup merge of #33339 - oli-obk:fix/const_eval, r=japaric
authorManish Goregaokar <manishsmail@gmail.com>
Tue, 3 May 2016 13:39:08 +0000 (19:09 +0530)
committerManish Goregaokar <manishsmail@gmail.com>
Tue, 3 May 2016 14:24:52 +0000 (19:54 +0530)
fix various const eval errors

These were found after const_evaluating arbitrary expressions and linting if the const evaluator failed

fixes #33275 (int -> float casts for negative ints)
fixes #33291 (int -> char casts (new! wasn't allowed in constants until this PR))

r? @eddyb

cc @bluss @japaric

1  2 
src/librustc_const_eval/eval.rs

Simple merge