-
Notifications
You must be signed in to change notification settings - Fork 13.4k
zero-length static array triggers LLVM assertion error on windows #13793
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Comments
cc #10872 |
rustc --test empty.rs
triggers LLVM assertion error on windows
Updated title and minimal example. (was:
|
Other example: fn f(_a: &[int]) {
}
fn main() {
static A: [int, ..0u] = [];
f(A); // triggers assertion
} This example is derived from |
Interestingly, if you go from Maybe we've set up LLVM incorrectly? |
upstream llvm bug: http://llvm.org/bugs/show_bug.cgi?id=18993 |
Fixes rust-lang#13793. Interestingly enough, to actually check that the macro call has at least two arguments, we need to use the rust lexer after getting the original source code snippet. changelog: Add new `useless_concat` lint
Original:
rustc --test empty.rs
triggers LLVM assertion error on windowsThe text was updated successfully, but these errors were encountered: