Skip to content

Commit 3377291

Browse files
RickyRicky
authored andcommitted
Ran cargo dev update_lints
1 parent 202a80c commit 3377291

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1675,6 +1675,7 @@ Released 2018-09-13
16751675
[`many_single_char_names`]: https://rust-lang.github.io/rust-clippy/master/index.html#many_single_char_names
16761676
[`map_clone`]: https://rust-lang.github.io/rust-clippy/master/index.html#map_clone
16771677
[`map_entry`]: https://rust-lang.github.io/rust-clippy/master/index.html#map_entry
1678+
[`map_err_ignore`]: https://rust-lang.github.io/rust-clippy/master/index.html#map_err_ignore
16781679
[`map_flatten`]: https://rust-lang.github.io/rust-clippy/master/index.html#map_flatten
16791680
[`map_identity`]: https://rust-lang.github.io/rust-clippy/master/index.html#map_identity
16801681
[`map_unwrap_or`]: https://rust-lang.github.io/rust-clippy/master/index.html#map_unwrap_or

clippy_lints/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1538,7 +1538,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
15381538
LintId::of(&manual_async_fn::MANUAL_ASYNC_FN),
15391539
LintId::of(&manual_non_exhaustive::MANUAL_NON_EXHAUSTIVE),
15401540
LintId::of(&map_clone::MAP_CLONE),
1541-
LintId::of(&map_err_ignore::MAP_ERR_IGNORE),
1541+
LintId::of(&map_err_ignore::MAP_ERR_IGNORE),
15421542
LintId::of(&matches::INFALLIBLE_DESTRUCTURING_MATCH),
15431543
LintId::of(&matches::MATCH_LIKE_MATCHES_MACRO),
15441544
LintId::of(&matches::MATCH_OVERLAPPING_ARM),

src/lintlist/mod.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1165,6 +1165,13 @@ pub static ref ALL_LINTS: Vec<Lint> = vec![
11651165
deprecation: None,
11661166
module: "entry",
11671167
},
1168+
Lint {
1169+
name: "map_err_ignore",
1170+
group: "style",
1171+
desc: "`map_err` should not ignore the original error",
1172+
deprecation: None,
1173+
module: "map_err_ignore",
1174+
},
11681175
Lint {
11691176
name: "map_flatten",
11701177
group: "pedantic",

0 commit comments

Comments
 (0)