-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
cargo doc fails to compile existential associated types #58011
Labels
A-impl-trait
Area: `impl Trait`. Universally / existentially quantified anonymous types with static dispatch.
C-bug
Category: This is a bug.
F-type_alias_impl_trait
`#[feature(type_alias_impl_trait)]`
requires-nightly
This issue requires a nightly compiler in some way.
T-rustdoc
Relevant to the rustdoc team, which will review and decide on the PR/issue.
Comments
jonas-schievink
added
T-rustdoc
Relevant to the rustdoc team, which will review and decide on the PR/issue.
A-impl-trait
Area: `impl Trait`. Universally / existentially quantified anonymous types with static dispatch.
C-bug
Category: This is a bug.
labels
Jan 30, 2019
brunocodutra
added a commit
to brunocodutra/reducer
that referenced
this issue
Feb 4, 2019
brunocodutra
added a commit
to brunocodutra/reducer
that referenced
this issue
Feb 5, 2019
brunocodutra
added a commit
to brunocodutra/reducer
that referenced
this issue
Feb 5, 2019
This happens with non-associated types, too. Here is a smaller example: #![feature(existential_type)]
pub trait A {}
impl A for u8 {}
existential type T: A;
fn f() -> T {
0u8
}
Basically, rustdoc treats all existential types as |
Centril
added
F-type_alias_impl_trait
`#[feature(type_alias_impl_trait)]`
requires-nightly
This issue requires a nightly compiler in some way.
labels
Jul 28, 2019
Updated example for #![feature(type_alias_impl_trait)]
pub struct Foo;
impl std::iter::IntoIterator for Foo {
type IntoIter = impl Iterator<Item = Self::Item>;
type Item = ();
fn into_iter(self) -> Self::IntoIter {
Some(()).into_iter()
}
}
pub type FooIntoIter = impl Iterator<Item = ()>;
pub fn foo_into_iter(foo: Foo) -> FooIntoIter {
foo.into_iter()
}
|
alecmocatta
added a commit
to constellation-rs/amadeus
that referenced
this issue
Oct 17, 2019
8 tasks
Closing as a duplicate of #65863 (which has more information). |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
A-impl-trait
Area: `impl Trait`. Universally / existentially quantified anonymous types with static dispatch.
C-bug
Category: This is a bug.
F-type_alias_impl_trait
`#[feature(type_alias_impl_trait)]`
requires-nightly
This issue requires a nightly compiler in some way.
T-rustdoc
Relevant to the rustdoc team, which will review and decide on the PR/issue.
While building, testing and running the below code works fine,
cargo doc
fails with:The text was updated successfully, but these errors were encountered: