-
Notifications
You must be signed in to change notification settings - Fork 13k
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
rustc happily compiles non-boolean branch expressions which assert at runtime #578
Comments
ghost
assigned brson
Jun 25, 2011
This should have been fixed by e8228e1 and I can't reproduce it with the latest. jdm, do you have the latest revision or can you provide more details? |
Sorry, I'm using an old revision. |
keeperofdakeys
pushed a commit
to keeperofdakeys/rust
that referenced
this issue
Dec 12, 2017
Steps towards support for musl-unknown-linux-uclibc Hello! I've been working towards resolving rust-lang/libc#361 , this PR compiles successfully with a newish compiler (with some minor fixes in `gcc`, `ctest`), and all the tests pass for `libc-ctest`. Basically most of the undefined functions, constants, and structs were just removed from the ctest, and then any constants that weren't correct were fixed. Would it make more sense to conditionally remove them from libc? I wasn't sure when it was appropriate to skip the test for it instead of removing the function/constants, so I just removed all the tests for now because that was a little easier than hunting them down. I'm also guessing the way some of the constants were conditionally set wasn't the correct style, would you guys have any advice on how to do it more correctly? Lemme know how it looks!
keeperofdakeys
pushed a commit
to keeperofdakeys/rust
that referenced
this issue
Dec 12, 2017
Bump to 0.2.23 I've added a bunch of constants and xattr support for macos. We've also got preliminary support for uclibc with rust-lang#578.
flip1995
pushed a commit
to flip1995/rust
that referenced
this issue
Nov 3, 2020
The items_after_statements lint was skipping all expansions. Instead we should still lint local macros. Fixes rust-lang#578
flip1995
pushed a commit
to flip1995/rust
that referenced
this issue
Nov 3, 2020
Lint items after statements in local macro expansions The items_after_statements lint was skipping all expansions. Instead we should still lint local macros. Fixes rust-lang#578 --- *Please keep the line below* changelog: The items_after_statements now applies to local macro expansions
antoyo
added a commit
to antoyo/rust
that referenced
this issue
Jan 13, 2025
…2_11 Sync from rust 2024/12/11
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
auto a = 0u;
if (a) {
fail
}
This should be caught at compile time.
The text was updated successfully, but these errors were encountered: