Skip to content
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

Integrate object projection predicates into rustdoc #20299

Closed
nikomatsakis opened this issue Dec 29, 2014 · 4 comments
Closed

Integrate object projection predicates into rustdoc #20299

nikomatsakis opened this issue Dec 29, 2014 · 4 comments
Labels
A-associated-items Area: Associated items such as associated types and consts. T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue.

Comments

@nikomatsakis
Copy link
Contributor

I think an object type like Iterator<T=uint> currently just ignores the T=uint bounds found in the ExistentialBounds struct.

@nikomatsakis nikomatsakis added the A-associated-items Area: Associated items such as associated types and consts. label Jan 7, 2015
@Gankra Gankra added the T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue. label Jan 8, 2015
@nikomatsakis
Copy link
Contributor Author

This is particularly relevant if we move function return types to be an associated type as proposed in #20871.

@nikomatsakis
Copy link
Contributor Author

These are ignored for where-clauses too, afaik.

@tomjakubowski
Copy link
Contributor

This is sort of done, though awkwardly for re-export cases, for where clauses after #21018. It should already be working for where clauses in signatures on items defined in the crate rustdoc is working on, like for:

pub trait Trait {
    type Out;
}

pub fn foo<T>(_: T) where T: Trait<Out=i32> { }

@tomjakubowski
Copy link
Contributor

As for object projection predicates, this should work already for the "one crate" case, but not for re-exports (as usual!).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-associated-items Area: Associated items such as associated types and consts. T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue.
Projects
None yet
Development

No branches or pull requests

3 participants