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