mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-30 11:37:31 +00:00
Make Pat::Range's start and end Option<ExprId>
This commit is contained in:
parent
b7b09d2acb
commit
06097c3388
6 changed files with 48 additions and 26 deletions
|
|
@ -440,7 +440,9 @@ impl ExprValidator {
|
|||
return;
|
||||
};
|
||||
let root = source_ptr.file_syntax(db.upcast());
|
||||
let ast::Expr::IfExpr(if_expr) = source_ptr.value.to_node(&root) else {
|
||||
let either::Left(ast::Expr::IfExpr(if_expr)) =
|
||||
source_ptr.value.to_node(&root)
|
||||
else {
|
||||
return;
|
||||
};
|
||||
let mut top_if_expr = if_expr;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue