From d1ce8ee20d67d5a44bcdb169c368f66678f10240 Mon Sep 17 00:00:00 2001 From: Nick Lewycky Date: Thu, 7 Nov 2019 10:57:10 -0800 Subject: [PATCH] Give that panic! a message. Also, make it an unreachable!. --- lib/llvm-backend/src/state.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/llvm-backend/src/state.rs b/lib/llvm-backend/src/state.rs index 254b9b344..357d83d1f 100644 --- a/lib/llvm-backend/src/state.rs +++ b/lib/llvm-backend/src/state.rs @@ -182,7 +182,7 @@ impl BitAnd for ExtraInfo { (false, false) => info, (true, false) => info | ExtraInfo::pending_f32_nan(), (false, true) => info | ExtraInfo::pending_f64_nan(), - (true, true) => panic!(""), + (true, true) => unreachable!("Can't form ExtraInfo with two pending canonicalizations"), }; info }