Address review comments
- Add doc comment to new type - Restore "only supported directly in conditions of `if` and `while` expressions" note - Rename variant with clearer name
This commit is contained in:
parent
b011a0a13b
commit
e324a59eb6
15 changed files with 362 additions and 4 deletions
|
@ -392,6 +392,7 @@ pub(crate) struct IfExpressionMissingCondition {
|
|||
|
||||
#[derive(Diagnostic)]
|
||||
#[diag(parse_expected_expression_found_let)]
|
||||
#[note]
|
||||
pub(crate) struct ExpectedExpressionFoundLet {
|
||||
#[primary_span]
|
||||
pub span: Span,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue