]> git.lizzy.rs Git - rust.git/commitdiff
Make internal lints allow-by-default
authorflip1995 <hello@philkrones.com>
Sat, 16 Mar 2019 13:59:34 +0000 (14:59 +0100)
committerflip1995 <hello@philkrones.com>
Wed, 3 Apr 2019 16:22:19 +0000 (18:22 +0200)
src/librustc/lint/internal.rs
src/librustc_interface/util.rs

index 8314bf7ae9d6ebf286f5531aa2d55df08cb7321b..7d820764549962336d3699c786e5bcec59117bbd 100644 (file)
@@ -11,7 +11,7 @@
 
 declare_lint! {
     pub DEFAULT_HASH_TYPES,
-    Warn,
+    Allow,
     "forbid HashMap and HashSet and suggest the FxHash* variants"
 }
 
@@ -64,7 +64,7 @@ fn check_ident(&mut self, cx: &EarlyContext<'_>, ident: Ident) {
 
 declare_lint! {
     pub USAGE_OF_TY_TYKIND,
-    Warn,
+    Allow,
     "Usage of `ty::TyKind` outside of the `ty::sty` module"
 }
 
index 6e4f2bf24e32f0750ab4ecfbb231d73489ee6ef3..f6e25d2c4db8891fa706be8f72e8ffaef101331e 100644 (file)
@@ -109,6 +109,7 @@ pub fn create_session(
     let codegen_backend = get_codegen_backend(&sess);
 
     rustc_lint::register_builtins(&mut sess.lint_store.borrow_mut(), Some(&sess));
+    rustc_lint::register_internals(&mut sess.lint_store.borrow_mut(), Some(&sess));
 
     let mut cfg = config::build_configuration(&sess, config::to_crate_config(cfg));
     add_configuration(&mut cfg, &sess, &*codegen_backend);