Skip to content

Commit e1dc026

Browse files
authored
Merge pull request #1749 from obi1kenobi/patch-1
Fix diagnostics typo: `do_no_recommend` -> `do_not_recommend`
2 parents 4d92113 + 49456a4 commit e1dc026

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/attributes/diagnostics.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -662,7 +662,7 @@ error[E0277]: the trait bound `&str: AsExpression<Integer>` is not satisfied
662662
= help: for that trait implementation, expected `Text`, found `Integer`
663663
```
664664

665-
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`.
665+
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`.
666666

667667
[Clippy]: https://github.com/rust-lang/rust-clippy
668668
[_MetaListNameValueStr_]: ../attributes.md#meta-item-attribute-syntax

0 commit comments

Comments
 (0)