diff options
| author | bjorn3 <bjorn3@users.noreply.github.com> | 2021-08-27 14:04:00 +0200 |
|---|---|---|
| committer | bjorn3 <bjorn3@users.noreply.github.com> | 2021-08-27 14:04:00 +0200 |
| commit | 6f5c9b97dc536d71725f6905f98940daa09bfbdc (patch) | |
| tree | d731c81a71e3a171042c5d505e997ec556a43037 | |
| parent | 9f5b52045c928157b12bec1d670e220fc7597375 (diff) | |
| download | rust-6f5c9b97dc536d71725f6905f98940daa09bfbdc.tar.gz rust-6f5c9b97dc536d71725f6905f98940daa09bfbdc.zip | |
Enable some warnings
| -rw-r--r-- | src/bin/cg_clif.rs | 3 | ||||
| -rw-r--r-- | src/bin/cg_clif_build_sysroot.rs | 4 |
2 files changed, 6 insertions, 1 deletions
diff --git a/src/bin/cg_clif.rs b/src/bin/cg_clif.rs index a044b43b864..b924f2085a0 100644 --- a/src/bin/cg_clif.rs +++ b/src/bin/cg_clif.rs @@ -1,4 +1,7 @@ #![feature(rustc_private, once_cell)] +#![warn(rust_2018_idioms)] +#![warn(unused_lifetimes)] +#![warn(unreachable_pub)] extern crate rustc_data_structures; extern crate rustc_driver; diff --git a/src/bin/cg_clif_build_sysroot.rs b/src/bin/cg_clif_build_sysroot.rs index e7cd5edbbf6..bde4d71b9a3 100644 --- a/src/bin/cg_clif_build_sysroot.rs +++ b/src/bin/cg_clif_build_sysroot.rs @@ -7,8 +7,10 @@ //! target crates. #![feature(rustc_private)] +#![warn(rust_2018_idioms)] +#![warn(unused_lifetimes)] +#![warn(unreachable_pub)] -extern crate rustc_data_structures; extern crate rustc_driver; extern crate rustc_interface; extern crate rustc_session; |
