Remove unsafe_vector_initialization lint

This commit is contained in:
David Tolnay
2018-12-03 02:43:01 -08:00
parent 67f9d24c1b
commit e632a1946e
6 changed files with 43 additions and 102 deletions

View File

@@ -330,6 +330,10 @@ pub fn register_plugins(reg: &mut rustc_plugin::Registry<'_>, conf: &Conf) {
"if_let_redundant_pattern_matching",
"this lint has been changed to redundant_pattern_matching",
);
store.register_removed(
"unsafe_vector_initialization",
"the replacement suggested by this lint had substantially different behavior",
);
// end deprecated lints, do not remove this comment, its used in `update_lints`
reg.register_late_lint_pass(box serde_api::Serde);
@@ -495,7 +499,6 @@ pub fn register_plugins(reg: &mut rustc_plugin::Registry<'_>, conf: &Conf) {
panic_unimplemented::UNIMPLEMENTED,
shadow::SHADOW_REUSE,
shadow::SHADOW_SAME,
slow_vector_initialization::UNSAFE_VECTOR_INITIALIZATION,
strings::STRING_ADD,
write::PRINT_STDOUT,
write::USE_DEBUG,