Skip to content

Commit 6b69d49

Browse files
committed
wip
1 parent 4374059 commit 6b69d49

File tree

8 files changed

+1605
-1
lines changed

8 files changed

+1605
-1
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -5158,6 +5158,7 @@ Released 2018-09-13
51585158
[`manual_assert`]: https://rust-lang.github.io/rust-clippy/master/index.html#manual_assert
51595159
[`manual_async_fn`]: https://rust-lang.github.io/rust-clippy/master/index.html#manual_async_fn
51605160
[`manual_bits`]: https://rust-lang.github.io/rust-clippy/master/index.html#manual_bits
5161+
[`manual_checked_op`]: https://rust-lang.github.io/rust-clippy/master/index.html#manual_checked_op
51615162
[`manual_clamp`]: https://rust-lang.github.io/rust-clippy/master/index.html#manual_clamp
51625163
[`manual_filter`]: https://rust-lang.github.io/rust-clippy/master/index.html#manual_filter
51635164
[`manual_filter_map`]: https://rust-lang.github.io/rust-clippy/master/index.html#manual_filter_map

clippy_lints/src/declared_lints.rs

+1
Original file line numberDiff line numberDiff line change
@@ -283,6 +283,7 @@ pub(crate) static LINTS: &[&crate::LintInfo] = &[
283283
crate::manual_assert::MANUAL_ASSERT_INFO,
284284
crate::manual_async_fn::MANUAL_ASYNC_FN_INFO,
285285
crate::manual_bits::MANUAL_BITS_INFO,
286+
crate::manual_checked_op::MANUAL_CHECKED_OP_INFO,
286287
crate::manual_clamp::MANUAL_CLAMP_INFO,
287288
crate::manual_float_methods::MANUAL_IS_FINITE_INFO,
288289
crate::manual_float_methods::MANUAL_IS_INFINITE_INFO,

clippy_lints/src/lib.rs

+2
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,7 @@ mod main_recursion;
185185
mod manual_assert;
186186
mod manual_async_fn;
187187
mod manual_bits;
188+
mod manual_checked_op;
188189
mod manual_clamp;
189190
mod manual_float_methods;
190191
mod manual_hash_one;
@@ -1066,6 +1067,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
10661067
});
10671068
store.register_late_pass(move |_| Box::new(manual_hash_one::ManualHashOne::new(msrv())));
10681069
store.register_late_pass(|_| Box::new(iter_without_into_iter::IterWithoutIntoIter));
1070+
store.register_late_pass(|_| Box::new(manual_checked_op::ManualCheckedOp));
10691071
// add lints here, do not remove this comment, it's used in `new_lint`
10701072
}
10711073

0 commit comments

Comments
 (0)