Implement lint 'suspicious_map'

This commit is contained in:
Jeremy Stucki
2019-08-15 22:56:16 +02:00
parent f95c87ecea
commit f4f31a4ff4
5 changed files with 39 additions and 2 deletions

View File

@@ -657,6 +657,7 @@ pub fn register_plugins(reg: &mut rustc_plugin::Registry<'_>, conf: &Conf) {
methods::OPTION_MAP_UNWRAP_OR,
methods::OPTION_MAP_UNWRAP_OR_ELSE,
methods::RESULT_MAP_UNWRAP_OR_ELSE,
methods::SUSPICIOUS_MAP,
misc::USED_UNDERSCORE_BINDING,
misc_early::UNSEPARATED_LITERAL_SUFFIX,
mut_mut::MUT_MUT,