|
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};
|
@@ -1584,7 +1581,7 @@ impl<'a, 'tcx: 'a> SearchInterfaceForPrivateItemsVisitor<'a, 'tcx> {
|
1584 | 1581 | let ret = self.required_visibility == ty::Visibility::Public &&
|
1585 | 1582 | self.private_crates.contains(&item_id.krate);
|
1586 | 1583 |
|
1587 |
| - debug!("leaks_private_dep(item_id={:?})={}", item_id, ret); |
| 1584 | + log::debug!("leaks_private_dep(item_id={:?})={}", item_id, ret); |
1588 | 1585 | return ret;
|
1589 | 1586 | }
|
1590 | 1587 | }
|
@@ -1748,7 +1745,7 @@ impl<'a, 'tcx> Visitor<'tcx> for PrivateItemsInPublicInterfacesVisitor<'a, 'tcx>
|
1748 | 1745 | }
|
1749 | 1746 | }
|
1750 | 1747 |
|
1751 |
| -pub fn provide(providers: &mut Providers) { |
| 1748 | +pub fn provide(providers: &mut Providers<'_>) { |
1752 | 1749 | *providers = Providers {
|
1753 | 1750 | privacy_access_levels,
|
1754 | 1751 | check_mod_privacy,
|
|
0 commit comments