]> git.lizzy.rs Git - rust.git/commitdiff
Deny internal lints on librustc_interface
authorflip1995 <hello@philkrones.com>
Sun, 31 Mar 2019 21:29:35 +0000 (23:29 +0200)
committerflip1995 <hello@philkrones.com>
Wed, 3 Apr 2019 16:24:21 +0000 (18:24 +0200)
src/librustc_interface/interface.rs
src/librustc_interface/lib.rs
src/librustc_interface/util.rs

index 245a2bf92d530f22415937942bc277ea6fcdcd09..74085123f89ee345d075f83d5492d52778a9edb0 100644 (file)
@@ -12,7 +12,6 @@
 use rustc_data_structures::sync::Lrc;
 use rustc_data_structures::fx::{FxHashSet, FxHashMap};
 use rustc_metadata::cstore::CStore;
-use std::collections::HashSet;
 use std::io::Write;
 use std::path::PathBuf;
 use std::result;
index 3314681b6981a5096da6821cddaf61cfa40a13bb..353ff6a57a5efee02c99134bc49e470b7c4aa4a2 100644 (file)
@@ -7,6 +7,7 @@
 #![cfg_attr(unix, feature(libc))]
 
 #![deny(rust_2018_idioms)]
+#![cfg_attr(not(stage0), deny(internal))]
 
 #![allow(unused_imports)]
 
index 7f620de0f67cecf8bf11a2ba4c709b0175ae38bf..17523aedffb58ef2a0e4ec79c3fdf3f3b3543e52 100644 (file)
@@ -21,7 +21,6 @@
 use rustc_privacy;
 use rustc_resolve;
 use rustc_typeck;
-use std::collections::HashSet;
 use std::env;
 use std::env::consts::{DLL_PREFIX, DLL_SUFFIX};
 use std::io::{self, Write};