Skip to content

literal_string_with_formatting_args should provide a way to declare formatting macro #13994

Open
@ia0

Description

@ia0

Description

If one wants to provide their own formatting macros (either as proc-macro or wrappers around existing formatting macros), they will get the lint at every call-site.

How does the lint check that a macro is a formatting macro? Does it have access to attributes declared on the macro definition?

If there is (or will be) such a feature, it should be documented in the lint documentation.

Version

rustc 1.86.0-nightly (48a426eca 2025-01-12)
binary: rustc
commit-hash: 48a426eca9df23b24b3559e545cf88dee61d4de9
commit-date: 2025-01-12
host: x86_64-unknown-linux-gnu
release: 1.86.0-nightly
LLVM version: 19.1.6

Additional Labels

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions