Skip to content

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

rustbot commented Jan 14, 2025

☔ The latest upstream changes (possibly f80986b) made this pull request unmergeable. Please resolve the merge conflicts.

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