We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 647c84b commit 535793dCopy full SHA for 535793d
src/ast/spans.rs
@@ -741,8 +741,10 @@ impl Spanned for CaseStatement {
741
fn span(&self) -> Span {
742
let CaseStatement {
743
case_token: AttachedToken(start),
744
+ match_expr: _,
745
+ when_blocks: _,
746
+ else_block: _,
747
end_case_token: AttachedToken(end),
- ..
748
} = self;
749
750
union_spans([start.span, end.span].into_iter())
@@ -775,8 +777,8 @@ impl Spanned for ConditionalStatements {
775
777
}
776
778
ConditionalStatements::BeginEnd {
779
begin_token: AttachedToken(start),
780
+ statements: _,
781
end_token: AttachedToken(end),
782
} => union_spans([start.span, end.span].into_iter()),
783
784
0 commit comments