Skip to content

Figure out a better way to track for reporting when a method is being used like a field #6890

Closed
@erickt

Description

@erickt

Adding this issue now before landing my pull request.

Even though you can't treat a method like a field, we need to add any trait methods we find that match the field name so that we can do some nice error reporting later on in typeck.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-diagnosticsArea: Messages for errors, warnings, and lintsA-resolveArea: Name/path resolution done by `rustc_resolve` specificallyC-enhancementCategory: An issue proposing an enhancement or a PR with one.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions