Skip to content

Conversation

oli-obk
Copy link
Contributor

@oli-obk oli-obk commented Sep 24, 2019

introduced in rust-lang/rust#63810

@RalfJung RalfJung added the S-blocked-on-rust Status: Blocked on landing a Rust PR label Sep 28, 2019
@@ -1,5 +1,5 @@
#![feature(core_intrinsics)]
fn main() {
// signed divison with a remainder
unsafe { std::intrinsics::exact_div(-19i8, 2); } //~ ERROR Scalar(0xed) cannot be divided by Scalar(0x02) without remainder
unsafe { std::intrinsics::exact_div(-19i8, 2); } //~ ERROR 237 cannot be divided by 2 without remainder
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@oli-obk I am not sure if this is the desired printing here... we are printing a negative number as a positive one.

@RalfJung
Copy link
Member

RalfJung commented Nov 3, 2019

@bors r+

@bors
Copy link
Contributor

bors commented Nov 3, 2019

📌 Commit fcf0f88 has been approved by RalfJung

@bors
Copy link
Contributor

bors commented Nov 3, 2019

⌛ Testing commit fcf0f88 with merge 4f71715...

bors added a commit that referenced this pull request Nov 3, 2019
Use the upstream `exact_div` implementation

introduced in rust-lang/rust#63810
@bors
Copy link
Contributor

bors commented Nov 3, 2019

☀️ Test successful - checks-travis, status-appveyor
Approved by: RalfJung
Pushing 4f71715 to master...

@bors bors merged commit fcf0f88 into master Nov 3, 2019
@RalfJung RalfJung deleted the exact_div_reuse branch November 3, 2019 12:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-blocked-on-rust Status: Blocked on landing a Rust PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants