Skip to content

Commit fac1419

Browse files
committed
[WIP] Add PRINTLN_EMPTY_STRING lint.
I have no idea of how I could properly check that there is really an empty string argument in a `println` invocation. See `HACK` in print.rs for details.
1 parent 4d9ed8b commit fac1419

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

clippy_lints/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -530,6 +530,7 @@ pub fn register_plugins(reg: &mut rustc_plugin::Registry) {
530530
partialeq_ne_impl::PARTIALEQ_NE_IMPL,
531531
precedence::PRECEDENCE,
532532
print::PRINT_WITH_NEWLINE,
533+
print::PRINTLN_EMPTY_STRING,
533534
ptr::CMP_NULL,
534535
ptr::MUT_FROM_REF,
535536
ptr::PTR_ARG,

0 commit comments

Comments
 (0)