]> git.lizzy.rs Git - rust.git/commit
auto merge of #10018 : fhahn/rust/check-inferred-ints, r=alexcrichton
authorbors <bors@rust-lang.org>
Thu, 14 Nov 2013 21:01:35 +0000 (13:01 -0800)
committerbors <bors@rust-lang.org>
Thu, 14 Nov 2013 21:01:35 +0000 (13:01 -0800)
commitade310cbb6e949b27285ca592e34371c1cc6677f
tree179f19735600c04427f28df62bd9d786abd4c6ae
parent0d11935bf6ae3e784aefb1c359a70fea5dfd3d00
parent20627c7430afd700cf0b462c372d9086c7c51f0a
auto merge of #10018 : fhahn/rust/check-inferred-ints, r=alexcrichton

I've started working on this issue and pushed a small commit, which adds a range check for integer literals in `middle::const_eval` (no `uint` at the moment)
At the moment, this patch is just a proof of concept, I'm not sure if there is a better function for the checks in `middle::const_eval`. This patch does not check for overflows after constant folding, eg:

    let x: i8 = 99 + 99;
doc/tutorial-tasks.md
src/librustc/middle/lint.rs