]> git.lizzy.rs Git - rust.git/commit
refactor infer function
authorOliver Schneider <git-spam-no-reply9815368754983@oli-obk.de>
Mon, 2 May 2016 14:40:40 +0000 (16:40 +0200)
committerOliver Schneider <git-spam-no-reply9815368754983@oli-obk.de>
Mon, 2 May 2016 14:40:40 +0000 (16:40 +0200)
commitce6ea47d43e9c646849aad34876a0054da58a1e9
tree1ff301c0c9bf5ffcc11dd6723836a798367791d1
parentf080b13c6beaa409c2bb643dd997a73ce0e75b89
refactor infer function

There was no span available in the cast function, but we need to infer the `x` in `x as char` to `u8`.
The spans are now removed from all functions using `infer` and instead added in `eval_const_expr_partial`
src/librustc_const_eval/eval.rs