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:
Matthew Jasper 2023-09-13 15:00:31 +00:00
parent b011a0a13b
commit e324a59eb6
15 changed files with 362 additions and 4 deletions

View file

@ -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,