Skip to content

Point at shadowed name binding in you might have meant to refer to suggestion #103358

Closed
@cjgillot

Description

@cjgillot
    Makes sense, I just would rather we pointed at the ident for the item and not the whole thing.

Originally posted by @estebank in #103111 (comment)

The suggestion was introduced by #103111. The suggestion point to the definition of the suggested item. Pointing to the shadowed identifier would be more precise:

  • the ident of the item in case of direct reference;
  • the import in case of indirect reference.

Metadata

Metadata

Assignees

Labels

A-diagnosticsArea: Messages for errors, warnings, and lintsD-papercutDiagnostics: An error or lint that needs small tweaks.D-terseDiagnostics: An error or lint that doesn't give enough information about the problem at hand.E-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.P-lowLow priorityT-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