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

Use format string in bootstrap panic instead of a string directly #81910

Merged
merged 1 commit into from
Feb 10, 2021

Commits on Feb 9, 2021

  1. Use format string in bootstrap panic instead of a string directly

    This fixes the following warning when compiling with nightly:
    
    ```
    warning: panic message is not a string literal
        --> src/bootstrap/builder.rs:1515:24
         |
    1515 |                 panic!(out);
         |                        ^^^
         |
         = note: `#[warn(non_fmt_panic)]` on by default
         = note: this is no longer accepted in Rust 2021
    help: add a "{}" format string to Display the message
         |
    1515 |                 panic!("{}", out);
         |                        ^^^^^
    help: or use std::panic::panic_any instead
         |
    1515 |                 std::panic::panic_any(out);
         |                 ^^^^^^^^^^^^^^^^^^^^^^
    ```
    jyn514 committed Feb 9, 2021
    Configuration menu
    Copy the full SHA
    31c9339 View commit details
    Browse the repository at this point in the history