diff options
| author | Mazdak Farrokhzad <twingoow@gmail.com> | 2019-09-25 16:26:16 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-09-25 16:26:16 +0200 |
| commit | b30238e3125a6c1ebf95cf47e58566efc75ad2f1 (patch) | |
| tree | 944f34fe94128685e9af27ebe5b2ed552208291a /src/libsyntax/parse/parser | |
| parent | c26f1296d2d7a5f0c6e0b4f5cc00d59b341bcf09 (diff) | |
| parent | 562903a0a684860c0e51971ea11f1ce97795d6a2 (diff) | |
| download | rust-b30238e3125a6c1ebf95cf47e58566efc75ad2f1.tar.gz rust-b30238e3125a6c1ebf95cf47e58566efc75ad2f1.zip | |
Rollup merge of #64386 - tspiteri:const-abs2, r=oli-obk
use `sign` variable in abs and wrapping_abs methods This also makes the code easier to understand by hinting at the significance of `self >> ($BITS - 1)`. Also, now `overflowing_abs` simply uses `wrapping_abs`, which is clearer and avoids a potential performance regression in the LLVM IR. This PR follows from the discussion from #63786. r? @eddyb cc @nikic
Diffstat (limited to 'src/libsyntax/parse/parser')
0 files changed, 0 insertions, 0 deletions
