Make internal lints allow-by-default

This commit is contained in:
flip1995 2019-03-16 14:59:34 +01:00
parent 16acf7d618
commit 9b2bf70851
No known key found for this signature in database
GPG Key ID: 693086869D506637
2 changed files with 3 additions and 2 deletions

View File

@ -11,7 +11,7 @@ use syntax::ast::Ident;
declare_lint! {
pub DEFAULT_HASH_TYPES,
Warn,
Allow,
"forbid HashMap and HashSet and suggest the FxHash* variants"
}
@ -64,7 +64,7 @@ impl EarlyLintPass for DefaultHashTypes {
declare_lint! {
pub USAGE_OF_TY_TYKIND,
Warn,
Allow,
"Usage of `ty::TyKind` outside of the `ty::sty` module"
}

View 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);