From 588f051fc04e8fd8214c585abcedded5dd8957e3 Mon Sep 17 00:00:00 2001 From: Daniel Spencer Date: Tue, 23 Feb 2021 19:41:48 -0500 Subject: [PATCH] Fix "panic message is not a string literal" Updates build.rs to use the second form of the assert! macro, which can take a format string and arguments, without needing to use format!. --- build.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/build.rs b/build.rs index 7918c624..6295c2bb 100644 --- a/build.rs +++ b/build.rs @@ -125,7 +125,8 @@ fn main() { // check that the kernel file exists assert!( kernel.exists(), - format!("KERNEL does not exist: {}", kernel.display()) + "KERNEL does not exist: {}", + kernel.display() ); // get access to llvm tools shipped in the llvm-tools-preview rustup component