Warn that #[deprecated]
does not work on re-exports
#142436
Labels
A-attributes
Area: Attributes (`#[…]`, `#![…]`)
A-diagnostics
Area: Messages for errors, warnings, and lints
L-deprecated
Lint: deprecated
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Uh oh!
There was an error while loading. Please reload this page.
Code
Current output
Desired output
Rationale and extra context
Per #30827, deprecating a re-export is a desired feature. But, that will require substantial work. We can fix a footgun now by warning that
#[deprecated]
has no effect when applied touse
.Rust Version
@rustbot label +L-deprecated
The text was updated successfully, but these errors were encountered: