Skip to content

Standardize what the 'a thingies are called in compiler errors #113693

Open
@carols10cents

Description

@carols10cents

There are some error messages that refer to 'a (colloquially called "lifetimes" but the compiler should be more specific) as a "lifetime annotation", a "lifetime parameter", or a "lifetime specifier".

Are these interchangeable, or is there a nuance I'm not appreciating?

If they are interchangeable, the compiler errors should probably pick one and stick with it.

Quick GitHub searches of the repo show "lifetime parameter" seems most common:

TRPL is inconsistent too 😅 it uses "lifetime parameter" and "lifetime annotation", but not "lifetime specifier", I don't think.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-diagnosticsArea: Messages for errors, warnings, and lintsA-lifetimesArea: Lifetimes / regionsD-inconsistentDiagnostics: Inconsistency in formatting, grammar or style between diagnostic messages.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions