-
Notifications
You must be signed in to change notification settings - Fork 13.2k
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: not using infcx
#139082
Labels
A-trait-objects
Area: trait objects, vtable layout
C-bug
Category: This is a bug.
F-trait_alias
`#![feature(trait_alias)]`
F-type_alias_impl_trait
`#[feature(type_alias_impl_trait)]`
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
S-has-bisection
Status: a bisection has been found for this issue
S-has-mcve
Status: A Minimal Complete and Verifiable Example has been found for this issue
T-types
Relevant to the types team, which will review and decide on the PR/issue.
Comments
smaller trait B<C> = Fn() -> Self;
type D<'a> = Vec<&'a dyn B<impl>>; |
seems to bisect to #133830 |
@rustbot label: +T-types -T-compiler +S-has-mcve +S-has-bisection +F-type_alias_impl_trait +A-trait-objects -needs-triage |
@rustbot claim |
xtexx
added a commit
to xtexx/rust
that referenced
this issue
Mar 30, 2025
Fixes rust-lang#139082. Bug: rust-lang#139082 Signed-off-by: xtex <[email protected]>
xtexx
added a commit
to xtexx/rust
that referenced
this issue
Mar 30, 2025
Fixes rust-lang#139082. Emits an error when `Self` is found in the projection bounds of a trait object. In type aliases, `Self` has no meaning, so `type A = &'static dyn B` where `trait B = Fn() -> Self` will expands to `type A = &'static Fn() -> Self` which is illegal, causing the region solver to bail out when hitting the uninferred Self. Bug: rust-lang#139082 Signed-off-by: xtex <[email protected]>
xtexx
added a commit
to xtexx/rust
that referenced
this issue
Mar 30, 2025
Fixes rust-lang#139082. Emits an error when `Self` is found in the projection bounds of a trait object. In type aliases, `Self` has no meaning, so `type A = &'static dyn B` where `trait B = Fn() -> Self` will expands to `type A = &'static Fn() -> Self` which is illegal, causing the region solver to bail out when hitting the uninferred Self. Bug: rust-lang#139082 Signed-off-by: xtex <[email protected]>
matthiaskrgr
added a commit
to matthiaskrgr/rust
that referenced
this issue
Apr 7, 2025
…er-errors compiler: report error when trait object type param reference self Fixes rust-lang#139082. Emits an error when `Self` is found in the projection bounds of a trait object. In type aliases, `Self` has no meaning, so `type A = &'static dyn B` where `trait B = Fn() -> Self` will expands to `type A = &'static Fn() -> Self` which is illegal, causing the region solver to bail out when hitting the uninferred Self. r? `@compiler-errors` `@fee1-dead`
matthiaskrgr
added a commit
to matthiaskrgr/rust
that referenced
this issue
Apr 7, 2025
…er-errors compiler: report error when trait object type param reference self Fixes rust-lang#139082. Emits an error when `Self` is found in the projection bounds of a trait object. In type aliases, `Self` has no meaning, so `type A = &'static dyn B` where `trait B = Fn() -> Self` will expands to `type A = &'static Fn() -> Self` which is illegal, causing the region solver to bail out when hitting the uninferred Self. r? ``@compiler-errors`` ``@fee1-dead``
Zalathar
added a commit
to Zalathar/rust
that referenced
this issue
Apr 8, 2025
…er-errors compiler: report error when trait object type param reference self Fixes rust-lang#139082. Emits an error when `Self` is found in the projection bounds of a trait object. In type aliases, `Self` has no meaning, so `type A = &'static dyn B` where `trait B = Fn() -> Self` will expands to `type A = &'static Fn() -> Self` which is illegal, causing the region solver to bail out when hitting the uninferred Self. r? ```@compiler-errors``` ```@fee1-dead```
Zalathar
added a commit
to Zalathar/rust
that referenced
this issue
Apr 8, 2025
…er-errors compiler: report error when trait object type param reference self Fixes rust-lang#139082. Emits an error when `Self` is found in the projection bounds of a trait object. In type aliases, `Self` has no meaning, so `type A = &'static dyn B` where `trait B = Fn() -> Self` will expands to `type A = &'static Fn() -> Self` which is illegal, causing the region solver to bail out when hitting the uninferred Self. r? ````@compiler-errors```` ````@fee1-dead````
rust-timer
added a commit
to rust-lang-ci/rust
that referenced
this issue
Apr 8, 2025
Rollup merge of rust-lang#139124 - xtexx:rust-langgh-139082, r=compiler-errors compiler: report error when trait object type param reference self Fixes rust-lang#139082. Emits an error when `Self` is found in the projection bounds of a trait object. In type aliases, `Self` has no meaning, so `type A = &'static dyn B` where `trait B = Fn() -> Self` will expands to `type A = &'static Fn() -> Self` which is illegal, causing the region solver to bail out when hitting the uninferred Self. r? ````@compiler-errors```` ````@fee1-dead````
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
A-trait-objects
Area: trait objects, vtable layout
C-bug
Category: This is a bug.
F-trait_alias
`#![feature(trait_alias)]`
F-type_alias_impl_trait
`#[feature(type_alias_impl_trait)]`
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
S-has-bisection
Status: a bisection has been found for this issue
S-has-mcve
Status: A Minimal Complete and Verifiable Example has been found for this issue
T-types
Relevant to the types team, which will review and decide on the PR/issue.
auto-reduced (treereduce-rust):
original:
Version information
Possibly related line of code:
rust/compiler/rustc_hir_analysis/src/outlives/utils.rs
Lines 123 to 135 in 2a06022
Command:
/home/matthias/.rustup/toolchains/master/bin/rustc
Program output
@rustbot label +F-trait_alias
The text was updated successfully, but these errors were encountered: