Skip to content

Deprecated attributes do not apply to macro-expanded items #57679

Closed
@euclio

Description

@euclio

Example at: https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=fc72706e6b3151479a1a454611827c50

I expected the deprecation lint to be fired on use of the wrapped function. If this is intentional behavior, I would expect a warning that the deprecated attribute is meaningless in that position.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-attributesArea: Attributes (`#[…]`, `#![…]`)A-macrosArea: All kinds of macros (custom derive, macro_rules!, proc macros, ..)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions