mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-27 15:11:30 +00:00
Rename panic files to panic_unimplemented
This commit is contained in:
parent
77794e91e2
commit
88c3c2f1c2
4 changed files with 11 additions and 11 deletions
|
@ -177,7 +177,7 @@ pub mod non_expressive_names;
|
|||
pub mod ok_if_let;
|
||||
pub mod open_options;
|
||||
pub mod overflow_check_conditional;
|
||||
pub mod panic;
|
||||
pub mod panic_unimplemented;
|
||||
pub mod partialeq_ne_impl;
|
||||
pub mod precedence;
|
||||
pub mod ptr;
|
||||
|
@ -352,7 +352,7 @@ pub fn register_plugins(reg: &mut rustc_plugin::Registry) {
|
|||
reg.register_late_lint_pass(box escape::Pass{too_large_for_stack: conf.too_large_for_stack});
|
||||
reg.register_early_lint_pass(box misc_early::MiscEarly);
|
||||
reg.register_late_lint_pass(box array_indexing::ArrayIndexing);
|
||||
reg.register_late_lint_pass(box panic::Pass);
|
||||
reg.register_late_lint_pass(box panic_unimplemented::Pass);
|
||||
reg.register_late_lint_pass(box strings::StringLitAsBytes);
|
||||
reg.register_late_lint_pass(box derive::Derive);
|
||||
reg.register_late_lint_pass(box types::CharLitAsU8);
|
||||
|
@ -626,8 +626,8 @@ pub fn register_plugins(reg: &mut rustc_plugin::Registry) {
|
|||
ok_if_let::IF_LET_SOME_RESULT,
|
||||
open_options::NONSENSICAL_OPEN_OPTIONS,
|
||||
overflow_check_conditional::OVERFLOW_CHECK_CONDITIONAL,
|
||||
panic::PANIC_PARAMS,
|
||||
panic::UNIMPLEMENTED,
|
||||
panic_unimplemented::PANIC_PARAMS,
|
||||
panic_unimplemented::UNIMPLEMENTED,
|
||||
partialeq_ne_impl::PARTIALEQ_NE_IMPL,
|
||||
precedence::PRECEDENCE,
|
||||
ptr::CMP_NULL,
|
||||
|
@ -749,8 +749,8 @@ pub fn register_plugins(reg: &mut rustc_plugin::Registry) {
|
|||
non_expressive_names::JUST_UNDERSCORES_AND_DIGITS,
|
||||
non_expressive_names::MANY_SINGLE_CHAR_NAMES,
|
||||
ok_if_let::IF_LET_SOME_RESULT,
|
||||
panic::PANIC_PARAMS,
|
||||
panic::UNIMPLEMENTED,
|
||||
panic_unimplemented::PANIC_PARAMS,
|
||||
panic_unimplemented::UNIMPLEMENTED,
|
||||
ptr::CMP_NULL,
|
||||
ptr::PTR_ARG,
|
||||
question_mark::QUESTION_MARK,
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
error: you probably are missing some parameter in your format string
|
||||
--> $DIR/panic.rs:8:16
|
||||
--> $DIR/panic_unimplemented.rs:8:16
|
||||
|
|
||||
8 | panic!("{}");
|
||||
| ^^^^
|
||||
|
@ -7,25 +7,25 @@ error: you probably are missing some parameter in your format string
|
|||
= note: `-D panic-params` implied by `-D warnings`
|
||||
|
||||
error: you probably are missing some parameter in your format string
|
||||
--> $DIR/panic.rs:10:16
|
||||
--> $DIR/panic_unimplemented.rs:10:16
|
||||
|
|
||||
10 | panic!("{:?}");
|
||||
| ^^^^^^
|
||||
|
||||
error: you probably are missing some parameter in your format string
|
||||
--> $DIR/panic.rs:12:23
|
||||
--> $DIR/panic_unimplemented.rs:12:23
|
||||
|
|
||||
12 | assert!(true, "here be missing values: {}");
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error: you probably are missing some parameter in your format string
|
||||
--> $DIR/panic.rs:15:12
|
||||
--> $DIR/panic_unimplemented.rs:15:12
|
||||
|
|
||||
15 | panic!("{{{this}}}");
|
||||
| ^^^^^^^^^^^^
|
||||
|
||||
error: `unimplemented` should not be present in production code
|
||||
--> $DIR/panic.rs:57:5
|
||||
--> $DIR/panic_unimplemented.rs:57:5
|
||||
|
|
||||
57 | unimplemented!();
|
||||
| ^^^^^^^^^^^^^^^^^
|
Loading…
Reference in a new issue