From 49456a45e54fb77c0498d71c66ded70c9d6a7811 Mon Sep 17 00:00:00 2001 From: Predrag Gruevski <2348618+obi1kenobi@users.noreply.github.com> Date: Tue, 4 Mar 2025 20:19:29 -0500 Subject: [PATCH] Fix typo: `do_no_recommend` -> `do_not_recommend` Noticed this while reading the diagnostics documentation and wanted to send in a quick fix. --- src/attributes/diagnostics.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/attributes/diagnostics.md b/src/attributes/diagnostics.md index 4fa6b3eda..0f1723fa9 100644 --- a/src/attributes/diagnostics.md +++ b/src/attributes/diagnostics.md @@ -662,7 +662,7 @@ error[E0277]: the trait bound `&str: AsExpression` is not satisfied = help: for that trait implementation, expected `Text`, found `Integer` ``` -The first error message includes a somewhat confusing error message about the relationship of `&str` and `Expression`, as well as the unsatisfied trait bound in the blanket impl. After adding `#[diagnostic::do_no_recommend]`, it no longer considers the blanket impl for the recommendation. The message should be a little clearer, with an indication that a string cannot be converted to an `Integer`. +The first error message includes a somewhat confusing error message about the relationship of `&str` and `Expression`, as well as the unsatisfied trait bound in the blanket impl. After adding `#[diagnostic::do_not_recommend]`, it no longer considers the blanket impl for the recommendation. The message should be a little clearer, with an indication that a string cannot be converted to an `Integer`. [Clippy]: https://github.com/rust-lang/rust-clippy [_MetaListNameValueStr_]: ../attributes.md#meta-item-attribute-syntax