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

Lifetime declaration missing in cross-crate method definitions #20719

Closed
huonw opened this issue Jan 7, 2015 · 2 comments
Closed

Lifetime declaration missing in cross-crate method definitions #20719

huonw opened this issue Jan 7, 2015 · 2 comments
Labels
T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue.

Comments

@huonw
Copy link
Member

huonw commented Jan 7, 2015

http://doc.rust-lang.org/nightly/std/ops/trait.Index.html#method.index

    fn index(&'a self, index: &Index) -> &'a <Self as Index<Index>>::Output;

vs.

http://doc.rust-lang.org/nightly/core/ops/trait.Index.html#method.index

    fn index<'a>(&'a self, index: &Index) -> &'a Output;

http://doc.rust-lang.org/nightly/std/collections/struct.BTreeMap.html#method.keys

    fn keys(&'a self) -> Keys<'a, K, V>

vs.

http://doc.rust-lang.org/nightly/collections/struct.BTreeMap.html#method.keys

    fn keys<'a>(&'a self) -> Keys<'a, K, V>
@huonw huonw added the T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue. label Jan 7, 2015
@tomjakubowski
Copy link
Contributor

It doesn't look like the ty::Generics gets includes any region parameters unless a type parameter is bound by them (like <'a, T: 'a>). Might be an encoder bug?

edit: oh, I see, bare fn types have Binders full of lifetimes in their signature.

@alexcrichton
Copy link
Member

Closing as a dupe of #14462

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
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