Skip to content

Error message contains $crate instead of crate name #85244

Open
@Aaron1011

Description

@Aaron1011

Since #82069 was merged, the 'this error originates in macro <name>) messages sometimes contain $crate, instead of the actual crate name.

For example:

= note: this error originates in the macro `$crate::format_args_nl` (in Nightly builds, run with -Z macro-backtrace for more info)

We should resolve these $crate identifiers to the actual crate name before displaying them to the user.

cc @cjgillot

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-diagnosticsArea: Messages for errors, warnings, and lintsA-macrosArea: All kinds of macros (custom derive, macro_rules!, proc macros, ..)C-bugCategory: This is a bug.T-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