Skip to content

Commit bf0eb6a

Browse files
authored
Change a #[cfg()] to a cfg!()
1 parent 6135b2d commit bf0eb6a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/librustc_driver/driver.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -246,8 +246,7 @@ pub fn compile_input(sess: &Session,
246246
})??
247247
};
248248

249-
#[cfg(not(feature="llvm"))]
250-
{
249+
if cfg!(not(feature="llvm")) {
251250
let (_, _) = (outputs, trans);
252251
sess.fatal("LLVM is not supported by this rustc");
253252
}

0 commit comments

Comments
 (0)