From c9613bdceacc8363d2a127370594a80975c6ac72 Mon Sep 17 00:00:00 2001 From: Mackenzie Clark Date: Wed, 27 Mar 2019 16:55:12 -0700 Subject: [PATCH] add compiler error instead --- lib/emscripten/src/utils.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/emscripten/src/utils.rs b/lib/emscripten/src/utils.rs index 90bf9ce4c..d6255308f 100644 --- a/lib/emscripten/src/utils.rs +++ b/lib/emscripten/src/utils.rs @@ -175,9 +175,7 @@ mod tests { } #[cfg(not(any(feature = "llvm", feature = "clif", feature = "dynasm")))] - fn get_compiler() -> impl Compiler { - panic!("compiler not specified, activate a compiler via features") - } + compile_error!("compiler not specified, activate a compiler via features"); #[test] fn should_detect_emscripten_files() {