Repository navigation
ICE: no errors encountered even though delay_span_bug issued, expected ReFree to map to ReEarlyBound #108580
Copy link
Copy link
Closed
Labels
C-bugCategory: This is a bug.Category: This is a bug.E-needs-testCall for participation: An issue has been fixed and does not reproduce, but no test has been added.Call for participation: An issue has been fixed and does not reproduce, but no test has been added.F-return_position_impl_trait_in_trait`#![feature(return_position_impl_trait_in_trait)]``#![feature(return_position_impl_trait_in_trait)]`I-ICEIssue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.glacierICE tracked in rust-lang/glacier.ICE tracked in rust-lang/glacier.
Description
Activity
- addedC-bugCategory: This is a bug.Category: This is a bug.I-ICEIssue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.
on Feb 28, 2023 - addedF-associated_type_bounds`#![feature(associated_type_bounds)]``#![feature(associated_type_bounds)]`F-return_position_impl_trait_in_trait`#![feature(return_position_impl_trait_in_trait)]``#![feature(return_position_impl_trait_in_trait)]`
on Feb 28, 2023 This is also not related to associated type bounds:
#![feature(return_position_impl_trait_in_trait)] trait Foo { fn bar(&self) -> impl Iterator<Item = impl Sized> + '_; } impl Foo for () { fn bar(&self) -> impl Iterator + '_ { vec![()].into_iter() } }
This was fixed by #105255, which was subsequently reverted in #106759. The fix here is to make opaque types inherit their parent's generics, which can probably be done if #106729 lands.
- removedF-associated_type_bounds`#![feature(associated_type_bounds)]``#![feature(associated_type_bounds)]`
on Feb 28, 2023 - addedglacierICE tracked in rust-lang/glacier.ICE tracked in rust-lang/glacier.
on Mar 21, 2023 Triage: This no longer iCEs, now it errors with the following message
error: return type captures more lifetimes than trait definition --> src/lib.rs:8:22 | 8 | fn bar(&self) -> impl Iterator + '_ { | - ^^^^^^^^^^^^^^^^^^ | | | this lifetime was captured | note: hidden type must only reference lifetimes captured by this impl trait --> src/lib.rs:4:43 | 4 | fn bar(&self) -> impl Iterator<Item = impl Sized> + '_; | ^^^^^^^^^^ = note: hidden type inferred to be `<impl Iterator + '_ as Iterator>::Item`Reacted by Yuki Okushi- addedE-needs-testCall for participation: An issue has been fixed and does not reproduce, but no test has been added.Call for participation: An issue has been fixed and does not reproduce, but no test has been added.
on Jul 8, 2023 - added a commit that references this issue
on Mar 25, 2024
Metadata
Metadata
Assignees
Labels
C-bugCategory: This is a bug.Category: This is a bug.E-needs-testCall for participation: An issue has been fixed and does not reproduce, but no test has been added.Call for participation: An issue has been fixed and does not reproduce, but no test has been added.F-return_position_impl_trait_in_trait`#![feature(return_position_impl_trait_in_trait)]``#![feature(return_position_impl_trait_in_trait)]`I-ICEIssue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.glacierICE tracked in rust-lang/glacier.ICE tracked in rust-lang/glacier.
Code
(Playground)
Meta
Version:
Error output