diff options
| author | Taiki Endo <te316e89@gmail.com> | 2019-02-08 21:06:07 +0900 |
|---|---|---|
| committer | Taiki Endo <te316e89@gmail.com> | 2019-02-08 21:06:07 +0900 |
| commit | 0e622a8ba1d43904ff16231e4fe8a1907e66d563 (patch) | |
| tree | dda144d97261cf6990157ae9e38b77938e283485 /src/librustc_codegen_utils/lib.rs | |
| parent | 1efdda10cdde386ea3e470ba2b482fdc73c12001 (diff) | |
| download | rust-0e622a8ba1d43904ff16231e4fe8a1907e66d563.tar.gz rust-0e622a8ba1d43904ff16231e4fe8a1907e66d563.zip | |
librustc_codegen_utils => 2018
Diffstat (limited to 'src/librustc_codegen_utils/lib.rs')
| -rw-r--r-- | src/librustc_codegen_utils/lib.rs | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/src/librustc_codegen_utils/lib.rs b/src/librustc_codegen_utils/lib.rs index 8e96f985401..4c01681320f 100644 --- a/src/librustc_codegen_utils/lib.rs +++ b/src/librustc_codegen_utils/lib.rs @@ -16,18 +16,10 @@ #![recursion_limit="256"] -extern crate flate2; -#[macro_use] -extern crate log; +#![deny(rust_2018_idioms)] #[macro_use] extern crate rustc; -extern crate rustc_target; -extern crate rustc_metadata; -extern crate rustc_mir; -extern crate rustc_incremental; -extern crate syntax; -extern crate syntax_pos; #[macro_use] extern crate rustc_data_structures; use rustc::ty::TyCtxt; @@ -42,7 +34,7 @@ pub mod symbol_names_test; /// error in codegen. This is used to write compile-fail tests /// that actually test that compilation succeeds without /// reporting an error. -pub fn check_for_rustc_errors_attr(tcx: TyCtxt) { +pub fn check_for_rustc_errors_attr(tcx: TyCtxt<'_, '_, '_>) { if let Some((def_id, _)) = tcx.entry_fn(LOCAL_CRATE) { if tcx.has_attr(def_id, "rustc_error") { tcx.sess.span_fatal(tcx.def_span(def_id), "compilation successful"); |
