Bad suggestion dyn pub
on proc macro (#61963 regressed) · Issue #74043 · rust-lang/rust (original) (raw)
Navigation Menu
- Explore
- Pricing
Provide feedback
Saved searches
Use saved searches to filter your results more quickly
Appearance settings
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🔞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.