]> git.lizzy.rs Git - rust.git/commitdiff
Auto merge of #25159 - inrustwetrust:wrapping_inline, r=alexcrichton
authorbors <bors@rust-lang.org>
Sat, 9 May 2015 03:55:27 +0000 (03:55 +0000)
committerbors <bors@rust-lang.org>
Sat, 9 May 2015 03:55:27 +0000 (03:55 +0000)
This was causing function calls to be emitted for bitwise complements, even with optimizations on.
Steps to reproduce:
```
$ cat wrapping.rs
fn main() {
    let a = std::num::Wrapping(std::env::args().len() as u32);
    let b = !a;
    println!("{}", b.0);
}
$ rustc -O wrapping.rs --emit=asm,link
$ grep Not wrapping.s
        callq   _ZN3num8wrapping23Wrapping$LT$u32$GT$.Not3not20hba4b266232e02b1dHkbE
```


Trivial merge