Open
Description
#72306 causes the compiler to emit (and blessed) this bad suggestion in the test for #61963 (output):
error: trait objects without an explicit `dyn` are deprecated
--> $DIR/issue-61963.rs:18:1
|
LL | pub struct Foo {
| ^^^ help: use `dyn`: `dyn pub`
This is the behaviour the test is supposed to guard against (almost - the original bad suggestion was to insert dyn
before the proc macro attribute), so the issue is regressed.
The issue was originally fixed nearly a year ago, so this is a regression from stable.
Metadata
Metadata
Assignees
Labels
Area: Messages for errors, warnings, and lintsArea: All kinds of macros (custom derive, macro_rules!, proc macros, ..)Area: Procedural macrosArea: Suggestions generated by the compiler applied by `cargo fix`Category: This is a bug.Diagnostics: A structured suggestion resulting in incorrect code.Medium priorityRelevant to the compiler team, which will review and decide on the PR/issue.Performance or correctness regression from one stable version to another.