2020-04-17 12:43:37 +00:00
|
|
|
error: this call is collapsible
|
2023-08-24 19:32:12 +00:00
|
|
|
--> $DIR/collapsible_span_lint_calls.rs:35:9
|
2020-04-17 12:43:37 +00:00
|
|
|
|
|
|
|
|
LL | / span_lint_and_then(cx, TEST_LINT, expr.span, lint_msg, |db| {
|
|
|
|
LL | | db.span_suggestion(expr.span, help_msg, sugg.to_string(), Applicability::MachineApplicable);
|
|
|
|
LL | | });
|
|
|
|
| |__________^ help: collapse into: `span_lint_and_sugg(cx, TEST_LINT, expr.span, lint_msg, help_msg, sugg.to_string(), Applicability::MachineApplicable)`
|
|
|
|
|
|
|
|
|
note: the lint level is defined here
|
2023-08-24 19:32:12 +00:00
|
|
|
--> $DIR/collapsible_span_lint_calls.rs:1:9
|
2020-04-17 12:43:37 +00:00
|
|
|
|
|
|
|
|
LL | #![deny(clippy::internal)]
|
|
|
|
| ^^^^^^^^^^^^^^^^
|
|
|
|
= note: `#[deny(clippy::collapsible_span_lint_calls)]` implied by `#[deny(clippy::internal)]`
|
|
|
|
|
|
|
|
error: this call is collapsible
|
2023-08-24 19:32:12 +00:00
|
|
|
--> $DIR/collapsible_span_lint_calls.rs:38:9
|
2020-04-17 12:43:37 +00:00
|
|
|
|
|
|
|
|
LL | / span_lint_and_then(cx, TEST_LINT, expr.span, lint_msg, |db| {
|
|
|
|
LL | | db.span_help(expr.span, help_msg);
|
|
|
|
LL | | });
|
2020-04-18 10:28:29 +00:00
|
|
|
| |__________^ help: collapse into: `span_lint_and_help(cx, TEST_LINT, expr.span, lint_msg, Some(expr.span), help_msg)`
|
2020-04-17 12:43:37 +00:00
|
|
|
|
|
|
|
error: this call is collapsible
|
2023-08-24 19:32:12 +00:00
|
|
|
--> $DIR/collapsible_span_lint_calls.rs:41:9
|
2020-04-17 12:43:37 +00:00
|
|
|
|
|
|
|
|
LL | / span_lint_and_then(cx, TEST_LINT, expr.span, lint_msg, |db| {
|
|
|
|
LL | | db.help(help_msg);
|
|
|
|
LL | | });
|
2020-04-18 10:28:29 +00:00
|
|
|
| |__________^ help: collapse into: `span_lint_and_help(cx, TEST_LINT, expr.span, lint_msg, None, help_msg)`
|
2020-04-17 12:43:37 +00:00
|
|
|
|
2022-05-05 14:12:52 +00:00
|
|
|
error: this call is collapsible
|
2023-08-24 19:32:12 +00:00
|
|
|
--> $DIR/collapsible_span_lint_calls.rs:44:9
|
2020-04-17 12:43:37 +00:00
|
|
|
|
|
|
|
|
LL | / span_lint_and_then(cx, TEST_LINT, expr.span, lint_msg, |db| {
|
|
|
|
LL | | db.span_note(expr.span, note_msg);
|
|
|
|
LL | | });
|
2020-04-18 10:29:36 +00:00
|
|
|
| |__________^ help: collapse into: `span_lint_and_note(cx, TEST_LINT, expr.span, lint_msg, Some(expr.span), note_msg)`
|
2020-04-17 12:43:37 +00:00
|
|
|
|
2022-05-05 14:12:52 +00:00
|
|
|
error: this call is collapsible
|
2023-08-24 19:32:12 +00:00
|
|
|
--> $DIR/collapsible_span_lint_calls.rs:47:9
|
2020-04-17 12:43:37 +00:00
|
|
|
|
|
|
|
|
LL | / span_lint_and_then(cx, TEST_LINT, expr.span, lint_msg, |db| {
|
|
|
|
LL | | db.note(note_msg);
|
|
|
|
LL | | });
|
2020-04-18 10:29:36 +00:00
|
|
|
| |__________^ help: collapse into: `span_lint_and_note(cx, TEST_LINT, expr.span, lint_msg, None, note_msg)`
|
2020-04-17 12:43:37 +00:00
|
|
|
|
|
|
|
error: aborting due to 5 previous errors
|
|
|
|
|