Repository navigation
rustdoc: ICE: synthetic auto trait impls: index out of bounds, snapshot vec using -Znormalize-docs #112242
Copy link
Copy link
Closed
Labels
-Znormalize-docsUnstable rustdoc option: Normalize/evaluate types when generating docsUnstable rustdoc option: Normalize/evaluate types when generating docsA-auto-traitsArea: auto traits (e.g., `auto trait Send {}`)Area: auto traits (e.g., `auto trait Send {}`)A-synthetic-implsArea: Synthetic impls, used by rustdoc to document auto traits and traits with blanket implsArea: Synthetic impls, used by rustdoc to document auto traits and traits with blanket implsC-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.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.T-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.Relevant to the rustdoc team, which will review and decide on the PR/issue.
Description
Activity
- addedT-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.Relevant to the rustdoc team, which will review and decide on the PR/issue.I-ICEIssue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️C-bugCategory: This is a bug.Category: This is a bug.
on Jun 3, 2023 reduced a bit
mod foo { pub trait MyTrait<'a> { type MyItem: ?Sized; } pub struct Inner<'a, Q, R: ?Sized> { field: Q, field3: &'a u8, my_foo: Foo<Q>, field2: R, } pub struct Outer<'a, T, K: ?Sized> { my_inner: Inner<'a, T, K>, } pub struct Foo<T> { myfield: T, } } pub use foo::{Foo, Inner as NotInner, MyTrait as NotMyTrait}; unsafe impl<'a, Q, R: ?Sized> Send for NotInner<'static, Q, R> where Q: NotMyTrait<'a>, <Q as NotMyTrait<'a>>::MyItem: Copy, R:, Foo<Q>: Send, { }
- changed the title
[-]ice: rustdoc: Znormalize-docs [/-][+]ice: rustdoc: Znormalize-docs : index out of bounds, snapshot vec[/+]on Jun 3, 2023 - added-Znormalize-docsUnstable rustdoc option: Normalize/evaluate types when generating docsUnstable rustdoc option: Normalize/evaluate types when generating docs
on Jun 3, 2023 Ah another
AutoTraitFinderbug ^^.
@rustbot label T-compiler A-synthetic-impls A-auto-traits- addedA-auto-traitsArea: auto traits (e.g., `auto trait Send {}`)Area: auto traits (e.g., `auto trait Send {}`)A-synthetic-implsArea: Synthetic impls, used by rustdoc to document auto traits and traits with blanket implsArea: Synthetic impls, used by rustdoc to document auto traits and traits with blanket implsT-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 Jun 7, 2023 reduce:
rustdoc -Znormalize-docs file.rstrait MyTrait<'a> { type MyItem; } struct Inner<Q>(Q); struct Outer<Q>(Inner<Q>); unsafe impl<'a, Q> Send for Inner<Q> where Q: MyTrait<'a>, <Q as MyTrait<'a>>::MyItem: Copy, {}
All three reproducers will be fixed by #108503.
./tests/ui/implied-bounds/implied-bounds-unconstrained-2.rs// check-pass // Another minimized regression test for #112832. trait Trait { type Assoc; } trait Sub<'a>: Trait<Assoc = <Self as Sub<'a>>::SubAssoc> { type SubAssoc; } // By using the where-clause we normalize `<T as Trait>::Assoc` to // `<T as Sub<'a>>::SubAssoc` where `'a` is an unconstrained region // variable. fn foo<T>(x: <T as Trait>::Assoc) where for<'a> T: Sub<'a>, {} fn main() {}
I can no longer reproduce any of these issues.
- 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 Mar 31, 2024 - changed the title
[-]ice: rustdoc: Znormalize-docs : index out of bounds, snapshot vec[/-][+]rustdoc: ICE synthetic auto trait impls: `index out of bounds, snapshot vec` using `-Znormalize-docs`[/+]on Mar 31, 2024 - changed the title
[-]rustdoc: ICE synthetic auto trait impls: `index out of bounds, snapshot vec` using `-Znormalize-docs`[/-][+]rustdoc: ICE: synthetic auto trait impls: `index out of bounds, snapshot vec` using `-Znormalize-docs`[/+]on Mar 31, 2024 - added a commit that references this issue
on Apr 2, 2024 - added 2 commits that reference this issue
on Apr 2, 2024 - added a commit that references this issue
on Apr 2, 2024
Metadata
Metadata
Assignees
Labels
-Znormalize-docsUnstable rustdoc option: Normalize/evaluate types when generating docsUnstable rustdoc option: Normalize/evaluate types when generating docsA-auto-traitsArea: auto traits (e.g., `auto trait Send {}`)Area: auto traits (e.g., `auto trait Send {}`)A-synthetic-implsArea: Synthetic impls, used by rustdoc to document auto traits and traits with blanket implsArea: Synthetic impls, used by rustdoc to document auto traits and traits with blanket implsC-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.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.T-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.Relevant to the rustdoc team, which will review and decide on the PR/issue.
Code
rustdoc -Znormalize-docs --edition=2021 file.rsMeta
rustc --version --verbose:Error output
Backtrace