|
2 | 2 | html_favicon_url = "https://doc.rust-lang.org/favicon.ico",
|
3 | 3 | html_root_url = "https://doc.rust-lang.org/nightly/")]
|
4 | 4 |
|
5 |
| -#![feature(nll)] |
| 5 | +#![deny(rust_2018_idioms)] |
| 6 | + |
6 | 7 | #![feature(rustc_diagnostic_macros)]
|
7 | 8 |
|
8 | 9 | #![recursion_limit="256"]
|
9 | 10 |
|
10 |
| -#[macro_use] extern crate rustc; |
11 | 11 | #[macro_use] extern crate syntax;
|
12 |
| -#[macro_use] extern crate log; |
13 |
| -extern crate rustc_typeck; |
14 |
| -extern crate syntax_pos; |
15 |
| -extern crate rustc_data_structures; |
16 | 12 |
|
| 13 | +use rustc::bug; |
17 | 14 | use rustc::hir::{self, Node, PatKind, AssociatedItemKind};
|
18 | 15 | use rustc::hir::def::Def;
|
19 | 16 | use rustc::hir::def_id::{CRATE_DEF_INDEX, LOCAL_CRATE, CrateNum, DefId};
|
@@ -1541,7 +1538,7 @@ impl<'a, 'tcx: 'a> SearchInterfaceForPrivateItemsVisitor<'a, 'tcx> {
|
1541 | 1538 | let ret = self.required_visibility == ty::Visibility::Public &&
|
1542 | 1539 | self.private_crates.contains(&item_id.krate);
|
1543 | 1540 |
|
1544 |
| - debug!("leaks_private_dep(item_id={:?})={}", item_id, ret); |
| 1541 | + log::debug!("leaks_private_dep(item_id={:?})={}", item_id, ret); |
1545 | 1542 | return ret;
|
1546 | 1543 | }
|
1547 | 1544 | }
|
@@ -1705,7 +1702,7 @@ impl<'a, 'tcx> Visitor<'tcx> for PrivateItemsInPublicInterfacesVisitor<'a, 'tcx>
|
1705 | 1702 | }
|
1706 | 1703 | }
|
1707 | 1704 |
|
1708 |
| -pub fn provide(providers: &mut Providers) { |
| 1705 | +pub fn provide(providers: &mut Providers<'_>) { |
1709 | 1706 | *providers = Providers {
|
1710 | 1707 | privacy_access_levels,
|
1711 | 1708 | check_mod_privacy,
|
|
0 commit comments