]> git.lizzy.rs Git - rust.git/commit
Rollup merge of #66148 - oli-obk:it_must_be_a_sign, r=RalfJung
authorMazdak Farrokhzad <twingoow@gmail.com>
Tue, 3 Dec 2019 10:06:57 +0000 (11:06 +0100)
committerGitHub <noreply@github.com>
Tue, 3 Dec 2019 10:06:57 +0000 (11:06 +0100)
commit3045d22263b88e17e3ff2e824b25d727d31dea6d
tree616646646ad32d231de8429a52d1cc5285fdbd12
parent4787e97475de6be9487e3d9255a9c2d3c0bf9252
parenta3297562f6c1bb8ca7bcb80d265fc41dc10d5a9f
Rollup merge of #66148 - oli-obk:it_must_be_a_sign, r=RalfJung

Show the sign for signed ops on `exact_div`

r? @RalfJung Cc https://github.com/rust-lang/miri/pull/961/files#r341842128

I'm fairly unhappy with the duplication and the general effort required for this.

Maybe it would be better to add a `display` impl for `ImmTy`?
src/librustc_mir/interpret/intrinsics.rs
src/librustc_mir/interpret/operand.rs