Skip to content

document implicit lifetime bounds#1063

Open
tlyu wants to merge 1 commit intorust-lang:masterfrom
tlyu:inferred-outlives
Open

document implicit lifetime bounds#1063
tlyu wants to merge 1 commit intorust-lang:masterfrom
tlyu:inferred-outlives

Conversation

@tlyu
Copy link
Copy Markdown
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.

@traviscross
Copy link
Copy Markdown
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
Copy Markdown
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
@rustbot

This comment has been minimized.

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.
@tlyu tlyu force-pushed the inferred-outlives branch from 7546115 to bfc56a9 Compare May 1, 2026 19:52
@rustbot
Copy link
Copy Markdown
Collaborator

rustbot commented May 1, 2026

This PR was rebased onto a different master commit. Here's a range-diff highlighting what actually changed.

Rebasing is a normal part of keeping PRs up to date, so no action is needed—this note is just to help reviewers.

@tlyu
Copy link
Copy Markdown
Contributor Author

tlyu commented May 1, 2026

I've done a rebase. I'm still refreshing my memory about the subject matter after a few years away, so I'll address the review comments once I've done that.

@tlyu
Copy link
Copy Markdown
Contributor Author

tlyu commented May 1, 2026

It looks like #1261 added a lot of overlapping content. I'm going to see how much overlap there is, and check whether the content that I wrote is still needed.

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