Skip to content

refactor: Turn LifetimeRef into an enum #19550

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

Merged
merged 1 commit into from
Apr 9, 2025

Conversation

Veykril
Copy link
Member

@Veykril Veykril commented Apr 9, 2025

This makes things more structured

@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Apr 9, 2025
@Veykril Veykril enabled auto-merge April 9, 2025 10:26
@Veykril Veykril force-pushed the push-rsskztqzwuzk branch from 731c244 to 69913aa Compare April 9, 2025 10:42
Copy link
Contributor

@davidbarsky davidbarsky left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm, small nit

pub enum LifetimeRef {
Named(Name),
Static,
Infer,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For consistency with Named, I think this should be Inferred?

Suggested change
Infer,
Inferred

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, well. I mean, up to you.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually I'll name it Placeholder to mirror TypeRef

This makes things more structured
@Veykril Veykril force-pushed the push-rsskztqzwuzk branch from 69913aa to 0721214 Compare April 9, 2025 13:58
@Veykril Veykril added this pull request to the merge queue Apr 9, 2025
Merged via the queue into rust-lang:master with commit a055643 Apr 9, 2025
14 checks passed
@Veykril Veykril deleted the push-rsskztqzwuzk branch April 9, 2025 14:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-review Status: Awaiting review from the assignee but also interested parties.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants