-
Notifications
You must be signed in to change notification settings - Fork 13.2k
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
"exceeding bitshifts" lint does not always work in debug mode on playground #70660
Comments
I am quite puzzled why this does not get caught by this test which I added specifically to catch cases like this. Isn't the "noopt" revision equivalent to debug mode?
|
Oh, well that is strange... when I locally just run @shepmaster what is the exact invocation that playground uses with "Debug" mode to build the code? |
Oh lol, I only checked stable Rust; this got fixed by one of my PRs from February and those are not on stable yet... d'oh. |
Also, we have to make sure that there always is some ICE we can trigger in rustc, because that's a good way to get the actual compiler flags. ;) |
Isn’t that what fn main() {
break rust;
}
|
@shepmaster yeah but see #70661 |
I tried this code:
I am building in debug mode on the playground.
I expected to see this happen: it should warn about the exceeding bitshift (like it does in release mode).
Instead, this happened: there is no warning,
Meta
Possibly related to #69021
The text was updated successfully, but these errors were encountered: