Skip to content

Commit e9991c7

Browse files
committed
Implement basic lint detecting manual slice copy
1 parent 5622f9a commit e9991c7

File tree

4 files changed

+636
-206
lines changed

4 files changed

+636
-206
lines changed

clippy_lints/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -434,6 +434,7 @@ pub fn register_plugins(reg: &mut rustc_plugin::Registry) {
434434
loops::FOR_LOOP_OVER_RESULT,
435435
loops::ITER_NEXT_LOOP,
436436
loops::NEEDLESS_RANGE_LOOP,
437+
loops::MANUAL_MEMCPY,
437438
loops::NEVER_LOOP,
438439
loops::REVERSE_RANGE_LOOP,
439440
loops::UNUSED_COLLECT,

0 commit comments

Comments
 (0)