deprecated proc_macro trigger warning on build library #65189
Labels
A-lint
Area: Lints (warnings about flaws in source code) such as unused_mut.
A-macros
Area: All kinds of macros (custom derive, macro_rules!, proc macros, ..)
C-bug
Category: This is a bug.
E-easy
Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.
E-mentor
Call for participation: This issue has a mentor. Use #t-compiler/help on Zulip for discussion.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Use
deprecated
attribute on a procedural macro function doesn't work like expected: it triggers a warning message also when library is building and not just in call place.I know that the
deprecate
attribute support is not landed in stable but this warning is present in all channels (stable, beta and nightly).Compiling lib simple by
cargo +beta build
raise follow warning:Sadly this issue make
deprecated
attribute not usable at all for procedural macro.Follow the code to reproduce this issue:
Cargo.toml
src/lib.rs
This issue has been assigned to @XiangQingW via this comment.
The text was updated successfully, but these errors were encountered: