Skip to content

Potential behaviour regression with named formatting arguments #372

@kubkon

Description

@kubkon

Current release version 0.4.10 seems to have introduced a regression in behaviour in the sense that named formatting arguments, which were legal in the previous versions, are now illegal.

Minimal example:

fn main() {
    let name = "John";
    log::info!("Hello, {name}", name = name);
}

Is this intended behaviour or a bug?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions