2020-04-17 07:43:37 -05:00
|
|
|
error: this call is collapsible
|
2021-11-11 05:54:53 -06:00
|
|
|
--> $DIR/collapsible_span_lint_calls.rs:36:9
|
2020-04-17 07:43:37 -05: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
|
|
|
|
--> $DIR/collapsible_span_lint_calls.rs:2:9
|
|
|
|
|
|
|
|
|
LL | #![deny(clippy::internal)]
|
|
|
|
| ^^^^^^^^^^^^^^^^
|
|
|
|
= note: `#[deny(clippy::collapsible_span_lint_calls)]` implied by `#[deny(clippy::internal)]`
|
|
|
|
|
|
|
|
error: this call is collapsible
|
2021-11-11 05:54:53 -06:00
|
|
|
--> $DIR/collapsible_span_lint_calls.rs:39:9
|
2020-04-17 07:43:37 -05: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 05:28:29 -05:00
|
|
|
| |__________^ help: collapse into: `span_lint_and_help(cx, TEST_LINT, expr.span, lint_msg, Some(expr.span), help_msg)`
|
2020-04-17 07:43:37 -05:00
|
|
|
|
|
|
|
error: this call is collapsible
|
2021-11-11 05:54:53 -06:00
|
|
|
--> $DIR/collapsible_span_lint_calls.rs:42:9
|
2020-04-17 07:43:37 -05:00
|
|
|
|
|
|
|
|
LL | / span_lint_and_then(cx, TEST_LINT, expr.span, lint_msg, |db| {
|
|
|
|
LL | | db.help(help_msg);
|
|
|
|
LL | | });
|
2020-04-18 05:28:29 -05:00
|
|
|
| |__________^ help: collapse into: `span_lint_and_help(cx, TEST_LINT, expr.span, lint_msg, None, help_msg)`
|
2020-04-17 07:43:37 -05:00
|
|
|
|
2022-04-15 14:28:48 -05:00
|
|
|
error: this call is collapsible
|
2021-11-11 05:54:53 -06:00
|
|
|
--> $DIR/collapsible_span_lint_calls.rs:45:9
|
2020-04-17 07:43:37 -05: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 05:29:36 -05:00
|
|
|
| |__________^ help: collapse into: `span_lint_and_note(cx, TEST_LINT, expr.span, lint_msg, Some(expr.span), note_msg)`
|
2020-04-17 07:43:37 -05:00
|
|
|
|
2022-04-15 14:28:48 -05:00
|
|
|
error: this call is collapsible
|
2021-11-11 05:54:53 -06:00
|
|
|
--> $DIR/collapsible_span_lint_calls.rs:48:9
|
2020-04-17 07:43:37 -05:00
|
|
|
|
|
|
|
|
LL | / span_lint_and_then(cx, TEST_LINT, expr.span, lint_msg, |db| {
|
|
|
|
LL | | db.note(note_msg);
|
|
|
|
LL | | });
|
2020-04-18 05:29:36 -05:00
|
|
|
| |__________^ help: collapse into: `span_lint_and_note(cx, TEST_LINT, expr.span, lint_msg, None, note_msg)`
|
2020-04-17 07:43:37 -05:00
|
|
|
|
|
|
|
error: aborting due to 5 previous errors
|
|
|
|
|