Make internal lints allow-by-default
This commit is contained in:
parent
16acf7d618
commit
9b2bf70851
@ -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"
|
||||
}
|
||||
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user