diff options
| author | Alejandra González <blyxyas@gmail.com> | 2025-08-31 12:27:16 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-08-31 12:27:16 +0000 |
| commit | 034136ddfaee774cecb6c36c0f33f499bf7bd149 (patch) | |
| tree | 234d7f5f33aa94d1e6456afd6d0fba2c9ecae211 | |
| parent | 7fd0b9e7ddd12699f3717249126a77c2775628d6 (diff) | |
| parent | 7f125af963ed5b44b6d7e47be62ed5026b96c6e6 (diff) | |
| download | rust-034136ddfaee774cecb6c36c0f33f499bf7bd149.tar.gz rust-034136ddfaee774cecb6c36c0f33f499bf7bd149.zip | |
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
| -rw-r--r-- | clippy.toml | 6 | ||||
| -rw-r--r-- | tests/ui-internal/disallow_span_lint.stderr | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/clippy.toml b/clippy.toml index 77573105d86..d9bcfd17606 100644 --- a/clippy.toml +++ b/clippy.toml @@ -6,12 +6,12 @@ lint-commented-code = true [[disallowed-methods]] path = "rustc_lint::context::LintContext::lint" -reason = "this function does not add a link to our documentation, please use the `clippy_utils::diagnostics::span_lint*` functions instead" +reason = "this function does not add a link to our documentation; please use the `clippy_utils::diagnostics::span_lint*` functions instead" [[disallowed-methods]] path = "rustc_lint::context::LintContext::span_lint" -reason = "this function does not add a link to our documentation, please use the `clippy_utils::diagnostics::span_lint*` functions instead" +reason = "this function does not add a link to our documentation; please use the `clippy_utils::diagnostics::span_lint*` functions instead" [[disallowed-methods]] path = "rustc_middle::ty::context::TyCtxt::node_span_lint" -reason = "this function does not add a link to our documentation, please use the `clippy_utils::diagnostics::span_lint_hir*` functions instead" +reason = "this function does not add a link to our documentation; please use the `clippy_utils::diagnostics::span_lint_hir*` functions instead" diff --git a/tests/ui-internal/disallow_span_lint.stderr b/tests/ui-internal/disallow_span_lint.stderr index f03a745963e..e9d53c64dd9 100644 --- a/tests/ui-internal/disallow_span_lint.stderr +++ b/tests/ui-internal/disallow_span_lint.stderr @@ -4,7 +4,7 @@ error: use of a disallowed method `rustc_lint::context::LintContext::span_lint` LL | cx.span_lint(lint, span, |lint| { | ^^^^^^^^^ | - = note: this function does not add a link to our documentation, please use the `clippy_utils::diagnostics::span_lint*` functions instead + = note: this function does not add a link to our documentation; please use the `clippy_utils::diagnostics::span_lint*` functions instead note: the lint level is defined here --> tests/ui-internal/disallow_span_lint.rs:2:9 | @@ -17,7 +17,7 @@ error: use of a disallowed method `rustc_middle::ty::context::TyCtxt::node_span_ LL | tcx.node_span_lint(lint, hir_id, span, |lint| { | ^^^^^^^^^^^^^^ | - = note: this function does not add a link to our documentation, please use the `clippy_utils::diagnostics::span_lint_hir*` functions instead + = note: this function does not add a link to our documentation; please use the `clippy_utils::diagnostics::span_lint_hir*` functions instead error: aborting due to 2 previous errors |
