Skip to content

Commit 034136d

Browse files
authored
Commas to semicolons in clippy.toml reasons (#15592)
The things being separated are sentences. So I think semicolons are the right separators to use. changelog: none
2 parents 7fd0b9e + 7f125af commit 034136d

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

clippy.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@ lint-commented-code = true
66

77
[[disallowed-methods]]
88
path = "rustc_lint::context::LintContext::lint"
9-
reason = "this function does not add a link to our documentation, please use the `clippy_utils::diagnostics::span_lint*` functions instead"
9+
reason = "this function does not add a link to our documentation; please use the `clippy_utils::diagnostics::span_lint*` functions instead"
1010

1111
[[disallowed-methods]]
1212
path = "rustc_lint::context::LintContext::span_lint"
13-
reason = "this function does not add a link to our documentation, please use the `clippy_utils::diagnostics::span_lint*` functions instead"
13+
reason = "this function does not add a link to our documentation; please use the `clippy_utils::diagnostics::span_lint*` functions instead"
1414

1515
[[disallowed-methods]]
1616
path = "rustc_middle::ty::context::TyCtxt::node_span_lint"
17-
reason = "this function does not add a link to our documentation, please use the `clippy_utils::diagnostics::span_lint_hir*` functions instead"
17+
reason = "this function does not add a link to our documentation; please use the `clippy_utils::diagnostics::span_lint_hir*` functions instead"

tests/ui-internal/disallow_span_lint.stderr

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ error: use of a disallowed method `rustc_lint::context::LintContext::span_lint`
44
LL | cx.span_lint(lint, span, |lint| {
55
| ^^^^^^^^^
66
|
7-
= note: this function does not add a link to our documentation, please use the `clippy_utils::diagnostics::span_lint*` functions instead
7+
= note: this function does not add a link to our documentation; please use the `clippy_utils::diagnostics::span_lint*` functions instead
88
note: the lint level is defined here
99
--> tests/ui-internal/disallow_span_lint.rs:2:9
1010
|
@@ -17,7 +17,7 @@ error: use of a disallowed method `rustc_middle::ty::context::TyCtxt::node_span_
1717
LL | tcx.node_span_lint(lint, hir_id, span, |lint| {
1818
| ^^^^^^^^^^^^^^
1919
|
20-
= note: this function does not add a link to our documentation, please use the `clippy_utils::diagnostics::span_lint_hir*` functions instead
20+
= note: this function does not add a link to our documentation; please use the `clippy_utils::diagnostics::span_lint_hir*` functions instead
2121

2222
error: aborting due to 2 previous errors
2323

0 commit comments

Comments
 (0)