-
Notifications
You must be signed in to change notification settings - Fork 13.3k
ICE: itertools: .zip_eq() reached end of one iterator before the other
#130372
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
Labels
C-bug
Category: This is a bug.
F-c_variadic
`#![feature(c_variadic)]`
F-fn_delegation
`#![feature(fn_delegation)]`
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
S-bug-has-test
Status: This bug is tracked inside the repo by a `known-bug` test.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Comments
pub fn variadic_fn(n: usize, mut args: ...) {}
reuse variadic_fn;
fn main() {
variadic_fn();
} |
lol |
Thanks! I will take a look. (I'm glad we added the check!) |
another one that does not need delegation I think pub fn test_va_copy(_: u64, mut ap: ...) {}
pub fn main() {
unsafe {
test_va_copy();
call(x);
}
} |
fn bar() -> impl Fn() {
wrap()
}
fn wrap(...: impl ...) -> impl Fn() {} |
@rustbot claim |
rust-timer
added a commit
to rust-lang-ci/rust
that referenced
this issue
Sep 16, 2024
Rollup merge of rust-lang#130437 - jder:issue-130372, r=compiler-errors Avoid crashing on variadic functions when producing arg-mismatch errors Fixes rust-lang#130372 by accommodating how variadic functions change the argument list length between HIR body and FnDecls. Also degrades the zip_eq to a debug_assert! to match other asserts in the area to avoid being disruptive to users. There is at least one other crash in this area I am working on in rust-lang#130400 and also considering how we might refactor some of this code to hoist some of this logic up higher. r? `@compiler-errors`
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
C-bug
Category: This is a bug.
F-c_variadic
`#![feature(c_variadic)]`
F-fn_delegation
`#![feature(fn_delegation)]`
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
S-bug-has-test
Status: This bug is tracked inside the repo by a `known-bug` test.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
auto-reduced (treereduce-rust):
original code
original:
Version information
Command:
/home/matthias/.rustup/toolchains/master/bin/rustc
Program output
@rustbot label +F-c_variadic +F-fn_delegation
The text was updated successfully, but these errors were encountered: