Skip to content

[NLL] Loss of suggestion to introduce a named lifetime parameter #96157

Closed
@marmeladema

Description

@marmeladema
Contributor

In the src/test/ui/self/arbitrary_self_types_pin_lifetime_mismatch.base.rs test, we give the suggestion to consider introducing a named lifetime parameter and update trait if needed under migrate mode. Under NLL, the error message is imo clearer but we lose that suggestion.

Activity

added
A-diagnosticsArea: Messages for errors, warnings, and lints
T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.
on Apr 17, 2022
marmeladema

marmeladema commented on Apr 19, 2022

@marmeladema
ContributorAuthor

@rustbot label +A-NLL +NLL-diagnostics

added
A-NLLArea: Non-lexical lifetimes (NLL)
NLL-diagnosticsWorking towards the "diagnostic parity" goal
on Apr 19, 2022
added 3 commits that reference this issue on Apr 28, 2022

Rollup merge of rust-lang#96409 - marmeladema:fix-nll-introduce-named…

021a4ff

Rollup merge of rust-lang#96409 - marmeladema:fix-nll-introduce-named…

c9fb0b4

Rollup merge of rust-lang#96409 - marmeladema:fix-nll-introduce-named…

cbfbc3b
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-NLLArea: Non-lexical lifetimes (NLL)A-diagnosticsArea: Messages for errors, warnings, and lintsNLL-diagnosticsWorking towards the "diagnostic parity" goalT-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

      Participants

      @marmeladema@rustbot

      Issue actions

        [NLL] Loss of suggestion to introduce a named lifetime parameter · Issue #96157 · rust-lang/rust