Skip to content

Commit 824a039

Browse files
committed
s/missing_field_in_debug/missing_fields_in_debug
1 parent f3dd1c6 commit 824a039

File tree

6 files changed

+10
-10
lines changed

6 files changed

+10
-10
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4718,7 +4718,7 @@ Released 2018-09-13
47184718
[`missing_docs_in_private_items`]: https://rust-lang.github.io/rust-clippy/master/index.html#missing_docs_in_private_items
47194719
[`missing_enforced_import_renames`]: https://rust-lang.github.io/rust-clippy/master/index.html#missing_enforced_import_renames
47204720
[`missing_errors_doc`]: https://rust-lang.github.io/rust-clippy/master/index.html#missing_errors_doc
4721-
[`missing_field_in_debug`]: https://rust-lang.github.io/rust-clippy/master/index.html#missing_field_in_debug
4721+
[`missing_fields_in_debug`]: https://rust-lang.github.io/rust-clippy/master/index.html#missing_fields_in_debug
47224722
[`missing_inline_in_public_items`]: https://rust-lang.github.io/rust-clippy/master/index.html#missing_inline_in_public_items
47234723
[`missing_panics_doc`]: https://rust-lang.github.io/rust-clippy/master/index.html#missing_panics_doc
47244724
[`missing_safety_doc`]: https://rust-lang.github.io/rust-clippy/master/index.html#missing_safety_doc

clippy_lints/src/declared_lints.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -428,7 +428,7 @@ pub(crate) static LINTS: &[&crate::LintInfo] = &[
428428
crate::missing_const_for_fn::MISSING_CONST_FOR_FN_INFO,
429429
crate::missing_doc::MISSING_DOCS_IN_PRIVATE_ITEMS_INFO,
430430
crate::missing_enforced_import_rename::MISSING_ENFORCED_IMPORT_RENAMES_INFO,
431-
crate::missing_field_in_debug::MISSING_FIELD_IN_DEBUG_INFO,
431+
crate::missing_fields_in_debug::MISSING_FIELDS_IN_DEBUG_INFO,
432432
crate::missing_inline::MISSING_INLINE_IN_PUBLIC_ITEMS_INFO,
433433
crate::missing_trait_methods::MISSING_TRAIT_METHODS_INFO,
434434
crate::mixed_read_write_in_expression::DIVERGING_SUB_EXPRESSION_INFO,

clippy_lints/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ mod missing_assert_message;
202202
mod missing_const_for_fn;
203203
mod missing_doc;
204204
mod missing_enforced_import_rename;
205-
mod missing_field_in_debug;
205+
mod missing_fields_in_debug;
206206
mod missing_inline;
207207
mod missing_trait_methods;
208208
mod mixed_read_write_in_expression;
@@ -961,7 +961,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
961961
store.register_late_pass(|_| Box::new(tests_outside_test_module::TestsOutsideTestModule));
962962
store.register_late_pass(|_| Box::new(manual_slice_size_calculation::ManualSliceSizeCalculation));
963963
store.register_early_pass(|| Box::new(suspicious_doc_comments::SuspiciousDocComments));
964-
store.register_late_pass(|_| Box::new(missing_field_in_debug::MissingFieldInDebug));
964+
store.register_late_pass(|_| Box::new(missing_fields_in_debug::MissingFieldInDebug));
965965
// add lints here, do not remove this comment, it's used in `new_lint`
966966
}
967967

clippy_lints/src/missing_field_in_debug.rs renamed to clippy_lints/src/missing_fields_in_debug.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,11 +74,11 @@ declare_clippy_lint! {
7474
/// }
7575
/// ```
7676
#[clippy::version = "1.70.0"]
77-
pub MISSING_FIELD_IN_DEBUG,
77+
pub MISSING_FIELDS_IN_DEBUG,
7878
pedantic,
79-
"missing field in manual `Debug` implementation"
79+
"missing fields in manual `Debug` implementation"
8080
}
81-
declare_lint_pass!(MissingFieldInDebug => [MISSING_FIELD_IN_DEBUG]);
81+
declare_lint_pass!(MissingFieldInDebug => [MISSING_FIELDS_IN_DEBUG]);
8282

8383
const WARN: &str = "manual `Debug` impl does not include all fields";
8484
const HELP_WILDCARD: &str = "unused field here due to wildcard `_`";
@@ -92,7 +92,7 @@ fn report_lints<'tcx, I>(cx: &LateContext<'tcx>, span: Span, span_notes: I)
9292
where
9393
I: Iterator<Item = (Span, &'static str)>,
9494
{
95-
span_lint_and_then(cx, MISSING_FIELD_IN_DEBUG, span, WARN, |diag| {
95+
span_lint_and_then(cx, MISSING_FIELDS_IN_DEBUG, span, WARN, |diag| {
9696
for (span, note) in span_notes {
9797
diag.span_note(span, note);
9898
}

tests/ui/missing_field_in_debug.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#![allow(unused)]
2-
#![warn(clippy::missing_field_in_debug)]
2+
#![warn(clippy::missing_fields_in_debug)]
33

44
use std::fmt;
55

tests/ui/missing_field_in_debug.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ LL | hidden: u32,
1717
| ^^^^^^^^^^^
1818
= help: consider including all fields in this `Debug` impl
1919
= help: consider calling `.finish_non_exhaustive()` if you intend to ignore fields
20-
= note: `-D clippy::missing-field-in-debug` implied by `-D warnings`
20+
= note: `-D clippy::missing-fields-in-debug` implied by `-D warnings`
2121

2222
error: manual `Debug` impl does not include all fields
2323
--> $DIR/missing_field_in_debug.rs:29:1

0 commit comments

Comments
 (0)