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

document implicit lifetime bounds #1063

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

tlyu
Copy link
Contributor

@tlyu tlyu commented Jul 8, 2021

Add documentation about implicit lifetime bounds that the compiler
can infer for functions, trait implementations, and structs.
This draws from RFC 2093 (for structs) and RFC 1214 for functions
and trait implementations.

This is built on #1062 and #1060.

It does substantially increase the length of the page it's on, so I would be open to some reorganization.

Fixes #289.

@tlyu tlyu force-pushed the inferred-outlives branch from 53292b1 to 471bfd2 Compare July 15, 2021 00:09
Add documentation about implicit lifetime bounds that the compiler
can infer for functions, trait implementations, and structs.
This draws from RFC 2093 (for structs) and RFC 1214 for functions
and trait implementations.
@traviscross
Copy link
Contributor

We talked about this on the lang docs call. This is good work.

There are two things that we want to change before merging this. One is that we'd like the verbiage to state the rules more directly rather than leaning so heavily on the examples. The other is that we'd like to roll this into the section on implied bounds.

@traviscross
Copy link
Contributor

@rustbot author

@rustbot rustbot added the S-waiting-on-author Status: The marked PR is awaiting some action (such as code changes) from the PR author. label Oct 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-author Status: The marked PR is awaiting some action (such as code changes) from the PR author.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Infered lifetime bounds (RFC 2093)
3 participants