Skip to content

Confusing error for misspelled Option #3415

Closed
@catamorphism

Description

@catamorphism

To reproduce this, go into syntax::ast and change a use of Option to option. This resulted in a unresolved name : serialize_option error. I think it would have been better to report that option was an unresolved name first. (The particular use I changed was in item_impl, but that's not checked in yet.)

It would be nice to report errors that don't involve macro-expanded code first, but I'm not sure how easy that would be.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-resolveArea: Name/path resolution done by `rustc_resolve` specificallyA-syntaxextArea: Syntax extensions

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions