Skip to content

Commit

Permalink
librustc_privacy => 2018
Browse files Browse the repository at this point in the history
  • Loading branch information
Centril committed Feb 3, 2019
1 parent 2efa31b commit 582bbcc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
1 change: 1 addition & 0 deletions src/librustc_privacy/Cargo.toml
Expand Up @@ -2,6 +2,7 @@
authors = ["The Rust Project Developers"]
name = "rustc_privacy"
version = "0.0.0"
edition = "2018"

[lib]
name = "rustc_privacy"
Expand Down
13 changes: 5 additions & 8 deletions src/librustc_privacy/lib.rs
Expand Up @@ -2,18 +2,15 @@
html_favicon_url = "https://doc.rust-lang.org/favicon.ico",
html_root_url = "https://doc.rust-lang.org/nightly/")]

#![feature(nll)]
#![deny(rust_2018_idioms)]

#![feature(rustc_diagnostic_macros)]

#![recursion_limit="256"]

#[macro_use] extern crate rustc;
#[macro_use] extern crate syntax;
#[macro_use] extern crate log;
extern crate rustc_typeck;
extern crate syntax_pos;
extern crate rustc_data_structures;

use rustc::bug;
use rustc::hir::{self, Node, PatKind, AssociatedItemKind};
use rustc::hir::def::Def;
use rustc::hir::def_id::{CRATE_DEF_INDEX, LOCAL_CRATE, CrateNum, DefId};
Expand Down Expand Up @@ -1541,7 +1538,7 @@ impl<'a, 'tcx: 'a> SearchInterfaceForPrivateItemsVisitor<'a, 'tcx> {
let ret = self.required_visibility == ty::Visibility::Public &&
self.private_crates.contains(&item_id.krate);

debug!("leaks_private_dep(item_id={:?})={}", item_id, ret);
log::debug!("leaks_private_dep(item_id={:?})={}", item_id, ret);
return ret;
}
}
Expand Down Expand Up @@ -1705,7 +1702,7 @@ impl<'a, 'tcx> Visitor<'tcx> for PrivateItemsInPublicInterfacesVisitor<'a, 'tcx>
}
}

pub fn provide(providers: &mut Providers) {
pub fn provide(providers: &mut Providers<'_>) {
*providers = Providers {
privacy_access_levels,
check_mod_privacy,
Expand Down

0 comments on commit 582bbcc

Please sign in to comment.