Skip to content

Commit 343cf18

Browse files
committed
formatted error and description message
1 parent 8b117c9 commit 343cf18

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/lints/unconditionally_sealed_trait_became_unsealed.ron

+5-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
SemverQuery(
22
id: "unconditionally_sealed_trait_became_unsealed",
33
human_readable_name: "Unconditionally sealed trait became unsealed",
4-
description: "A trait that was previously unconditionally sealed is now unsealed, allowing downstream crates to implement it. This change introduces potential long-term stability risks, as reverting it in the future would be a breaking change",
4+
description: "An unconditionally sealed trait is now unsealed, allowing downstream crates to implement it and reverting this in the future would be a breaking change.",
55
required_update: Minor,
66
lint_level: Warn,
77
reference_link: Some("https://rust-lang.github.io/api-guidelines/future-proofing.html#sealed-traits-protect-against-downstream-implementations-c-sealed"),
@@ -13,6 +13,7 @@ SemverQuery(
1313
... on Trait {
1414
visibility_limit @filter(op: "=", value: ["$public"]) @output
1515
unconditionally_sealed @filter(op: "=", value: ["$true"])
16+
1617
importable_path {
1718
path @output @tag
1819
public_api @filter(op: "=", value: ["$true"])
@@ -27,10 +28,12 @@ SemverQuery(
2728
unconditionally_sealed @filter(op: "!=", value: ["$true"])
2829
public_api_sealed @filter(op: "!=", value: ["$true"])
2930
name @output
31+
3032
importable_path {
3133
path @filter(op: "=", value: ["%path"])
3234
public_api @filter(op: "=", value: ["$true"])
3335
}
36+
3437
span_: span @optional {
3538
filename @output
3639
begin_line @output
@@ -45,9 +48,7 @@ SemverQuery(
4548
"public": "public",
4649
"true": true,
4750
},
48-
error_message: "An unconditionally sealed trait is now unsealed, allowing downstream crates to implement it.
49-
This change introduces potential stability risks because if it needs to be re-sealed in the future,
50-
it would be a breaking change.",
51+
error_message: "An unconditionally sealed trait is now unsealed, allowing downstream crates to implement it and resealing it later would be a breaking change.",
5152
per_result_error_template: Some("trait {{join \"::\" path}} in file {{span_filename}}:{{span_begin_line}}"),
5253
witness: None,
5354
)

0 commit comments

Comments
 (0)