Skip to content

Commit 88c3c2f

Browse files
author
Michael A. Plikk
committed
Rename panic files to panic_unimplemented
1 parent 77794e9 commit 88c3c2f

File tree

4 files changed

+11
-11
lines changed

4 files changed

+11
-11
lines changed

clippy_lints/src/lib.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ pub mod non_expressive_names;
177177
pub mod ok_if_let;
178178
pub mod open_options;
179179
pub mod overflow_check_conditional;
180-
pub mod panic;
180+
pub mod panic_unimplemented;
181181
pub mod partialeq_ne_impl;
182182
pub mod precedence;
183183
pub mod ptr;
@@ -352,7 +352,7 @@ pub fn register_plugins(reg: &mut rustc_plugin::Registry) {
352352
reg.register_late_lint_pass(box escape::Pass{too_large_for_stack: conf.too_large_for_stack});
353353
reg.register_early_lint_pass(box misc_early::MiscEarly);
354354
reg.register_late_lint_pass(box array_indexing::ArrayIndexing);
355-
reg.register_late_lint_pass(box panic::Pass);
355+
reg.register_late_lint_pass(box panic_unimplemented::Pass);
356356
reg.register_late_lint_pass(box strings::StringLitAsBytes);
357357
reg.register_late_lint_pass(box derive::Derive);
358358
reg.register_late_lint_pass(box types::CharLitAsU8);
@@ -626,8 +626,8 @@ pub fn register_plugins(reg: &mut rustc_plugin::Registry) {
626626
ok_if_let::IF_LET_SOME_RESULT,
627627
open_options::NONSENSICAL_OPEN_OPTIONS,
628628
overflow_check_conditional::OVERFLOW_CHECK_CONDITIONAL,
629-
panic::PANIC_PARAMS,
630-
panic::UNIMPLEMENTED,
629+
panic_unimplemented::PANIC_PARAMS,
630+
panic_unimplemented::UNIMPLEMENTED,
631631
partialeq_ne_impl::PARTIALEQ_NE_IMPL,
632632
precedence::PRECEDENCE,
633633
ptr::CMP_NULL,
@@ -749,8 +749,8 @@ pub fn register_plugins(reg: &mut rustc_plugin::Registry) {
749749
non_expressive_names::JUST_UNDERSCORES_AND_DIGITS,
750750
non_expressive_names::MANY_SINGLE_CHAR_NAMES,
751751
ok_if_let::IF_LET_SOME_RESULT,
752-
panic::PANIC_PARAMS,
753-
panic::UNIMPLEMENTED,
752+
panic_unimplemented::PANIC_PARAMS,
753+
panic_unimplemented::UNIMPLEMENTED,
754754
ptr::CMP_NULL,
755755
ptr::PTR_ARG,
756756
question_mark::QUESTION_MARK,
File renamed without changes.
File renamed without changes.

tests/ui/panic.stderr renamed to tests/ui/panic_unimplemented.stderr

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,31 @@
11
error: you probably are missing some parameter in your format string
2-
--> $DIR/panic.rs:8:16
2+
--> $DIR/panic_unimplemented.rs:8:16
33
|
44
8 | panic!("{}");
55
| ^^^^
66
|
77
= note: `-D panic-params` implied by `-D warnings`
88

99
error: you probably are missing some parameter in your format string
10-
--> $DIR/panic.rs:10:16
10+
--> $DIR/panic_unimplemented.rs:10:16
1111
|
1212
10 | panic!("{:?}");
1313
| ^^^^^^
1414

1515
error: you probably are missing some parameter in your format string
16-
--> $DIR/panic.rs:12:23
16+
--> $DIR/panic_unimplemented.rs:12:23
1717
|
1818
12 | assert!(true, "here be missing values: {}");
1919
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2020

2121
error: you probably are missing some parameter in your format string
22-
--> $DIR/panic.rs:15:12
22+
--> $DIR/panic_unimplemented.rs:15:12
2323
|
2424
15 | panic!("{{{this}}}");
2525
| ^^^^^^^^^^^^
2626

2727
error: `unimplemented` should not be present in production code
28-
--> $DIR/panic.rs:57:5
28+
--> $DIR/panic_unimplemented.rs:57:5
2929
|
3030
57 | unimplemented!();
3131
| ^^^^^^^^^^^^^^^^^

0 commit comments

Comments
 (0)