50 lines
2.0 KiB
Plaintext
50 lines
2.0 KiB
Plaintext
|
error: this call is collapsible
|
||
|
--> $DIR/collapsible_span_lint_calls.rs:67:9
|
||
|
|
|
||
|
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
|
||
|
--> $DIR/collapsible_span_lint_calls.rs:70:9
|
||
|
|
|
||
|
LL | / span_lint_and_then(cx, TEST_LINT, expr.span, lint_msg, |db| {
|
||
|
LL | | db.span_help(expr.span, help_msg);
|
||
|
LL | | });
|
||
|
| |__________^ help: collapse into: `span_lint_and_help(cx, TEST_LINT, expr.span, lint_msg, help_msg)`
|
||
|
|
||
|
error: this call is collapsible
|
||
|
--> $DIR/collapsible_span_lint_calls.rs:73:9
|
||
|
|
|
||
|
LL | / span_lint_and_then(cx, TEST_LINT, expr.span, lint_msg, |db| {
|
||
|
LL | | db.help(help_msg);
|
||
|
LL | | });
|
||
|
| |__________^ help: collapse into: `span_lint_and_help(cx, TEST_LINT, expr.span, lint_msg, help_msg)`
|
||
|
|
||
|
error: this call is collspible
|
||
|
--> $DIR/collapsible_span_lint_calls.rs:76:9
|
||
|
|
|
||
|
LL | / span_lint_and_then(cx, TEST_LINT, expr.span, lint_msg, |db| {
|
||
|
LL | | db.span_note(expr.span, note_msg);
|
||
|
LL | | });
|
||
|
| |__________^ help: collapse into: `span_lint_and_note(cx, TEST_LINT, expr.span, lint_msg, expr.span, note_msg)`
|
||
|
|
||
|
error: this call is collspible
|
||
|
--> $DIR/collapsible_span_lint_calls.rs:79:9
|
||
|
|
|
||
|
LL | / span_lint_and_then(cx, TEST_LINT, expr.span, lint_msg, |db| {
|
||
|
LL | | db.note(note_msg);
|
||
|
LL | | });
|
||
|
| |__________^ help: collapse into: `span_lint_and_note(cx, TEST_LINT, expr.span, lint_msg, expr.span, note_msg)`
|
||
|
|
||
|
error: aborting due to 5 previous errors
|
||
|
|