Skip to content

Commit b2ddbe5

Browse files
committed
Add RwLock lint pass and remove unused explicit write test
1 parent 6373fd3 commit b2ddbe5

File tree

2 files changed

+1
-0
lines changed

2 files changed

+1
-0
lines changed

clippy_lints/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -849,6 +849,7 @@ pub fn register_lint_passes(store: &mut rustc_lint::LintStore, conf: &'static Co
849849
Box::new(|_| Box::new(toplevel_ref_arg::ToplevelRefArg)),
850850
Box::new(|_| Box::new(volatile_composites::VolatileComposites)),
851851
Box::new(|_| Box::<replace_box::ReplaceBox>::default()),
852+
Box::new(|_| Box::new(rwlock_atomic::RwLock)),
852853
// add late passes here, used by `cargo dev new_lint`
853854
];
854855
store.late_passes.extend(late_lints);

tests/ui/explicit_write_in_test.stderr

Whitespace-only changes.

0 commit comments

Comments
 (0)