Skip to content

Commit 30c5c2f

Browse files
committed
Add s to non_fmt_panic
1 parent 26e57f0 commit 30c5c2f

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

CHANGELOG.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -592,7 +592,7 @@ Released 2021-02-11
592592

593593
* Previously deprecated [`str_to_string`] and [`string_to_string`] have been un-deprecated
594594
as `restriction` lints [#6333](https://github.com/rust-lang/rust-clippy/pull/6333)
595-
* Deprecate `panic_params` lint. This is now available in rustc as `non_fmt_panic`
595+
* Deprecate `panic_params` lint. This is now available in rustc as `non_fmt_panics`
596596
[#6351](https://github.com/rust-lang/rust-clippy/pull/6351)
597597
* Move [`map_err_ignore`] to `restriction`
598598
[#6416](https://github.com/rust-lang/rust-clippy/pull/6416)

clippy_lints/src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -2171,7 +2171,7 @@ pub fn register_renamed(ls: &mut rustc_lint::LintStore) {
21712171
ls.register_renamed("clippy::unused_label", "unused_labels");
21722172
ls.register_renamed("clippy::drop_bounds", "drop_bounds");
21732173
ls.register_renamed("clippy::temporary_cstring_as_ptr", "temporary_cstring_as_ptr");
2174-
ls.register_renamed("clippy::panic_params", "non_fmt_panic");
2174+
ls.register_renamed("clippy::panic_params", "non_fmt_panics");
21752175
ls.register_renamed("clippy::unknown_clippy_lints", "unknown_lints");
21762176
}
21772177

tests/ui/assertions_on_constants.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#![allow(non_fmt_panic)]
1+
#![allow(non_fmt_panics)]
22

33
macro_rules! assert_const {
44
($len:expr) => {

tests/ui/deprecated.stderr

+2-2
Original file line numberDiff line numberDiff line change
@@ -60,11 +60,11 @@ error: lint `clippy::temporary_cstring_as_ptr` has been renamed to `temporary_cs
6060
LL | #[warn(clippy::temporary_cstring_as_ptr)]
6161
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use the new name: `temporary_cstring_as_ptr`
6262

63-
error: lint `clippy::panic_params` has been renamed to `non_fmt_panic`
63+
error: lint `clippy::panic_params` has been renamed to `non_fmt_panics`
6464
--> $DIR/deprecated.rs:11:8
6565
|
6666
LL | #[warn(clippy::panic_params)]
67-
| ^^^^^^^^^^^^^^^^^^^^ help: use the new name: `non_fmt_panic`
67+
| ^^^^^^^^^^^^^^^^^^^^ help: use the new name: `non_fmt_panics`
6868

6969
error: lint `clippy::unknown_clippy_lints` has been renamed to `unknown_lints`
7070
--> $DIR/deprecated.rs:12:8

0 commit comments

Comments
 (0)