Skip to content

Fix span on unknown macro variable error #6691

@emberian

Description

@emberian

In #6686 I added an error, but the span is incorrect. Ideally it would cover the use of the unknown variable and not the m in macro_rules!.

erickt | maybe the caller of lookup_cur_matched has the span you are looking for?
erickt | if so, you could pass it in and use that for your error message

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-diagnosticsArea: Messages for errors, warnings, and lintsA-syntaxextArea: Syntax extensionsP-lowLow priority

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions