Run 'update_lints'

This commit is contained in:
Jeremy Stucki 2019-08-12 21:47:12 +02:00
parent d51136d594
commit 4275d7b6ac
No known key found for this signature in database
GPG Key ID: EEFCA93148042655
2 changed files with 3 additions and 2 deletions

View File

@ -643,7 +643,6 @@ pub fn register_plugins(reg: &mut rustc_plugin::Registry<'_>, conf: &Conf) {
methods::FILTER_MAP,
methods::FILTER_MAP_NEXT,
methods::FIND_MAP,
methods::FLAT_MAP_IDENTITY,
methods::MAP_FLATTEN,
methods::OPTION_MAP_UNWRAP_OR,
methods::OPTION_MAP_UNWRAP_OR_ELSE,
@ -778,6 +777,7 @@ pub fn register_plugins(reg: &mut rustc_plugin::Registry<'_>, conf: &Conf) {
methods::CLONE_ON_COPY,
methods::EXPECT_FUN_CALL,
methods::FILTER_NEXT,
methods::FLAT_MAP_IDENTITY,
methods::INTO_ITER_ON_ARRAY,
methods::INTO_ITER_ON_REF,
methods::ITER_CLONED_COLLECT,
@ -1022,6 +1022,7 @@ pub fn register_plugins(reg: &mut rustc_plugin::Registry<'_>, conf: &Conf) {
methods::CHARS_NEXT_CMP,
methods::CLONE_ON_COPY,
methods::FILTER_NEXT,
methods::FLAT_MAP_IDENTITY,
methods::SEARCH_IS_SOME,
methods::UNNECESSARY_FILTER_MAP,
methods::USELESS_ASREF,

View File

@ -555,7 +555,7 @@ pub const ALL_LINTS: [Lint; 310] = [
},
Lint {
name: "flat_map_identity",
group: "pedantic",
group: "complexity",
desc: "call to `flat_map` where `flatten` is sufficient",
deprecation: None,
module: "methods",