Skip to content

non_fmt_panics suggestion applied many times when it appears inside a macro_rules #88115

Closed
@m-ou-se

Description

@m-ou-se

This showed up in a small crater run for the 2021 edition migrations:

The suggestion gets applied for every usage of the macro, resulting in:

                 panic!("{}", "{}", "{}", "{}", "{}", "{}", "{}", "{}", err)

Metadata

Metadata

Assignees

Labels

A-edition-2021Area: The 2021 editionA-suggestion-diagnosticsArea: Suggestions generated by the compiler applied by `cargo fix`C-bugCategory: This is a bug.D-editionDiagnostics: An error or lint that should account for edition differences.D-invalid-suggestionDiagnostics: A structured suggestion resulting in incorrect code.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