Skip to content

Commit 6f5c9b9

Browse files
committed
Enable some warnings
1 parent 9f5b520 commit 6f5c9b9

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

src/bin/cg_clif.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
#![feature(rustc_private, once_cell)]
2+
#![warn(rust_2018_idioms)]
3+
#![warn(unused_lifetimes)]
4+
#![warn(unreachable_pub)]
25

36
extern crate rustc_data_structures;
47
extern crate rustc_driver;

src/bin/cg_clif_build_sysroot.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,10 @@
77
//! target crates.
88
99
#![feature(rustc_private)]
10+
#![warn(rust_2018_idioms)]
11+
#![warn(unused_lifetimes)]
12+
#![warn(unreachable_pub)]
1013

11-
extern crate rustc_data_structures;
1214
extern crate rustc_driver;
1315
extern crate rustc_interface;
1416
extern crate rustc_session;

0 commit comments

Comments
 (0)