-
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: unexpected builtin trait with associated type:
<{closure@./... } as Fn>
#127746
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
Naserume
added
C-bug
Category: This is a bug.
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.
labels
Jul 15, 2024
rustbot
added
needs-triage
This issue may need triage. Remove it if it has been sufficiently triaged.
A-auto-traits
Area: auto traits (e.g., `auto trait Send {}`)
F-unboxed_closures
`#![feature(unboxed_closures)]`
labels
Jul 15, 2024
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 |
rustbot
added
F-auto_traits
`#![feature(auto_traits)]`
and removed
F-unboxed_closures
`#![feature(unboxed_closures)]`
labels
Jul 15, 2024
Noratrieb
removed
the
needs-triage
This issue may need triage. Remove it if it has been sufficiently triaged.
label
Jul 15, 2024
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in 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: