Skip to content

Commit 9b2bf70

Browse files
committed
Make internal lints allow-by-default
1 parent 16acf7d commit 9b2bf70

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/librustc/lint/internal.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ use syntax::ast::Ident;
1111

1212
declare_lint! {
1313
pub DEFAULT_HASH_TYPES,
14-
Warn,
14+
Allow,
1515
"forbid HashMap and HashSet and suggest the FxHash* variants"
1616
}
1717

@@ -64,7 +64,7 @@ impl EarlyLintPass for DefaultHashTypes {
6464

6565
declare_lint! {
6666
pub USAGE_OF_TY_TYKIND,
67-
Warn,
67+
Allow,
6868
"Usage of `ty::TyKind` outside of the `ty::sty` module"
6969
}
7070

src/librustc_interface/util.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@ pub fn create_session(
109109
let codegen_backend = get_codegen_backend(&sess);
110110

111111
rustc_lint::register_builtins(&mut sess.lint_store.borrow_mut(), Some(&sess));
112+
rustc_lint::register_internals(&mut sess.lint_store.borrow_mut(), Some(&sess));
112113

113114
let mut cfg = config::build_configuration(&sess, config::to_crate_config(cfg));
114115
add_configuration(&mut cfg, &sess, &*codegen_backend);

0 commit comments

Comments
 (0)