-
Notifications
You must be signed in to change notification settings - Fork 13.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cargo check fails to detect an error. #52484
Comments
Opened in cargo repo rust-lang/cargo#5747 |
This is the correct place after all |
It seems like |
There are a few things that are not enabled for |
Sorry, pinged the wrong person -- @graylikeme could you test again with the latest beta? Also it would help if you could distill this into a self-contained example so that we can reproduce the problem on the playground (https://play.rust-lang.org) |
Here is an example, it passes with fn main() {
let a: u8 = 42;
let b = ((a | 0x0F) - 1) >> 31 > 0;
println!("{}", b);
} |
Thanks! This looks like we don't run MIR optimizations with |
When running
cargo check
it fails to output an error that is detected withcargo build
b_reg is u8 and running stable 1.27.1
The text was updated successfully, but these errors were encountered: