Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Special treatment empty tuple when suggest adding a string literal in format macro. #131430

Merged
merged 1 commit into from
Oct 14, 2024

Commits on Oct 14, 2024

  1. Special treatment empty tuple when suggest adding a string literal in…

    … format macro.
    
    For example:
    ```rust
    let s = "123";
    println!({}, "sss", s);
    ```
    Suggest:
    `println!("{:?} {} {}", {}, "sss", s);`
    
    fixes rust-lang#130170
    surechen committed Oct 14, 2024
    Configuration menu
    Copy the full SHA
    ceced53 View commit details
    Browse the repository at this point in the history