]> git.lizzy.rs Git - rust.git/commit
Add a `with_cond` method
authorJames Miller <james@aatch.net>
Thu, 28 Apr 2016 12:04:45 +0000 (00:04 +1200)
committerEduard Burtescu <edy.burt@gmail.com>
Sun, 5 Jun 2016 11:02:24 +0000 (14:02 +0300)
commitf2c983b248dff67da3f772af0df1483a5accc258
tree1000842cea7f7d2d1eb98dc63a3262b75df45f68
parent73f3054288ee34b50c1f72404b24fdeb12a38f66
Add a `with_cond` method

Factors out the common pattern across the several places that do
arithmetic checks
src/librustc_mir/build/block.rs
src/librustc_mir/build/cfg.rs
src/librustc_mir/build/expr/as_rvalue.rs