diff --git a/src/librustc_driver/driver.rs b/src/librustc_driver/driver.rs index 84b1ade6d8b23..51121669aef44 100644 --- a/src/librustc_driver/driver.rs +++ b/src/librustc_driver/driver.rs @@ -246,8 +246,7 @@ pub fn compile_input(sess: &Session, })?? }; - #[cfg(not(feature="llvm"))] - { + if cfg!(not(feature="llvm")) { let (_, _) = (outputs, trans); sess.fatal("LLVM is not supported by this rustc"); }