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

Documentation uses HRTB lifetime before declaring it #132879

Open
Scripter17 opened this issue Nov 10, 2024 · 1 comment
Open

Documentation uses HRTB lifetime before declaring it #132879

Scripter17 opened this issue Nov 10, 2024 · 1 comment
Assignees
Labels
A-cross-crate-reexports Area: Documentation that has been re-exported from a different crate A-higher-ranked Area: Higher-ranked things (e.g., lifetimes, types, trait bounds aka HRTBs) C-bug Category: This is a bug. T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue.

Comments

@Scripter17
Copy link
Contributor

The str::rsplit_once docs say <P as Pattern>::Searcher<'a>: for<'a> ReverseSearcher<'a> where the code it's documenting says for<'a> P::Searcher<'a>: ReverseSearcher<'a>.

This almost certainly shows up in other places but this is where I first noticed it.

@rustbot rustbot added the needs-triage This issue may need triage. Remove it if it has been sufficiently triaged. label Nov 10, 2024
@fmease fmease self-assigned this Nov 10, 2024
@fmease fmease added T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue. C-bug Category: This is a bug. A-cross-crate-reexports Area: Documentation that has been re-exported from a different crate A-higher-ranked Area: Higher-ranked things (e.g., lifetimes, types, trait bounds aka HRTBs) and removed needs-triage This issue may need triage. Remove it if it has been sufficiently triaged. labels Nov 10, 2024
@fmease
Copy link
Member

fmease commented Nov 10, 2024

(Will be fixed when I fix #113015)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-cross-crate-reexports Area: Documentation that has been re-exported from a different crate A-higher-ranked Area: Higher-ranked things (e.g., lifetimes, types, trait bounds aka HRTBs) C-bug Category: This is a bug. 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