diff options
| author | Joshua Nelson <jyn514@gmail.com> | 2021-02-08 22:51:21 -0500 |
|---|---|---|
| committer | Joshua Nelson <jyn514@gmail.com> | 2021-02-08 22:51:21 -0500 |
| commit | 31c93397bde772764cda3058e16f9cef61895090 (patch) | |
| tree | 77b9e45a8a63de11ca54ab0d5dfc9172b683b8a5 /compiler/rustc_codegen_llvm/src | |
| parent | 9a1d6174c925f54c923599e29b09d6855e6b3a78 (diff) | |
| download | rust-31c93397bde772764cda3058e16f9cef61895090.tar.gz rust-31c93397bde772764cda3058e16f9cef61895090.zip | |
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);
| ^^^^^^^^^^^^^^^^^^^^^^
```
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions
