-
Notifications
You must be signed in to change notification settings - Fork 13.4k
ICE: unexpected builtin trait with associated type:
<{closure@./... } as Fn>
#127746
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
Labels
A-auto-traits
Area: auto traits (e.g., `auto trait Send {}`)
C-bug
Category: This is a bug.
F-auto_traits
`#![feature(auto_traits)]`
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Comments
Minimized: #![feature(auto_traits)]
auto trait Trait {
type Output;
}
fn f() {
let _: <i32 as Trait>::Output = 1_i64;
} Error output
@rustbot label -F-unboxed_closures +F-auto_traits |
Regression in nightly-2024-01-11 (190f4c9...a2d9d73)
Regression in nightly-2023-06-18 (6bba061...3b2073f) |
probably just another duplicate of #117829 |
rust-timer
added a commit
to rust-lang-ci/rust
that referenced
this issue
Jul 25, 2024
Rollup merge of rust-lang#128160 - compiler-errors:auto, r=jackh726 Don't ICE when auto trait has assoc ty in old solver Kinda a pointless change to make, but it's observable w/o the feature gate, so let's just fix it. I reintroduced this ICE when I removed the "auto impl" kind from `ImplSource` in rust-lang#112687. Fixes rust-lang#117829 Fixes rust-lang#127746
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
Labels
A-auto-traits
Area: auto traits (e.g., `auto trait Send {}`)
C-bug
Category: This is a bug.
F-auto_traits
`#![feature(auto_traits)]`
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Code
Meta
rustc --version --verbose
:Error output
Backtrace
Note
ICE location
rust/compiler/rustc_trait_selection/src/traits/project.rs
Lines 1122 to 1207 in fcaa6fd
@rustbot label +A-auto-traits +F-unboxed_closures
The text was updated successfully, but these errors were encountered: