-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
ICE in stable 1.57.0 when missing generic argument in return type #92305
Comments
The same issue happens in the latest nightly as well.
|
This bisects to nightly-2021-06-25. Commit range: 5a78340...7c3872e. It only reproduces with In that range, #86536 looks the most relevant because it is the only thing introducing edition-specific behavior, and it's dealing with closure capture and the presence of a closure appears necessary in the minimal repro. @arora-aman would you be interested in taking a look? |
For comparison, the same code with
|
Assigning priority as discussed in the Zulip thread of the Prioritization Working Group. @rustbot label -I-prioritize +P-low |
In both This is the returned value:
|
Add a regression test for rust-lang#92305 Closes rust-lang#92305 r? `@oli-obk` as per rust-lang#92305 (comment)
Rollup of 8 pull requests Successful merges: - rust-lang#93097 (Switch settings menu to full js) - rust-lang#96587 (Refactor the WriteBackendMethods and ExtraBackendMethods traits) - rust-lang#96589 (Use source callsite in check_argument_types suggestion) - rust-lang#96599 (Update `RValue::Discriminant` documentation) - rust-lang#96614 (Add a regression test for rust-lang#92305) - rust-lang#96629 (Fix invalid keyword order for function declarations) - rust-lang#96641 (Use a yes/no enum instead of a bool.) - rust-lang#96646 (Mitigate impact of subtle invalid call suggestion logic) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
Repro steps: create a new cargo binary with
cargo new
. Replacesrc/main.rs
with the following code. Then runcargo build
. Hope this is helpful! I've tried to minimize the code as much as possible.Code
Meta
rustc --version --verbose
:Error output
Backtrace
The text was updated successfully, but these errors were encountered: