#[deprecated]
attribute not working "as expected" on pub use
library crate exports
#85388
Labels
C-bug
Category: This is a bug.
Perhaps I don't have the right mental model, but I find it extremely confusing that
#[deprecated]
does not do what it's supposed to do on apub use
statement (in alib.rs
, for example). Consider:When compiling, no deprecation warning is emitted.
Instead, I am forced to use:
That in turn, now causes a deprecation warning to be emitted in the library crate itself.
Furthermore, no warning is emitted for the first version (
#[deprecated]
on thepub use
statement) that it does not do what (clearly?) the user intends.Meta
The text was updated successfully, but these errors were encountered: