From bf0eb6a22d2ae9630f5e1223d775885e0d880d91 Mon Sep 17 00:00:00 2001 From: bjorn3 Date: Sun, 13 Aug 2017 16:47:47 +0200 Subject: [PATCH] Change a #[cfg()] to a cfg!() --- src/librustc_driver/driver.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/librustc_driver/driver.rs b/src/librustc_driver/driver.rs index 84b1ade6d8b2..51121669aef4 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"); }