Skip to content

#[deprecated] fn using format_args!() triggers "use of deprecated item" warning #35128

Closed
@shahn

Description

@shahn

This code:

#[deprecated]
fn foo() {
    format_args!("bla");
}

gives this warning:

warning: use of deprecated item, #[warn(deprecated)] on by default
 --> <anon>:3:18
3 |>     format_args!("bla");
  |>                  ^^^^^
<anon>:3:5: 3:25: note: in this expansion of format_args!

in current stable and nightly

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions