warning: panic message is not a string literal
--> build.rs:128:9
|
128 | format!("KERNEL does not exist: {}", kernel.display())
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: `#[warn(non_fmt_panic)]` on by default
= note: this is no longer accepted in Rust 2021
= note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
Running the OS tutorial (https://os.phil-opp.com/), I get a warning every time I run the OS. I traced back the issue to this line:
https://github.com/rust-osdev/bootloader/blob/6a8a2635b400868d0fa057b74df0d1949a37ee3c/build.rs#L128
This is the warning:
I run the following versions: