mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 12:29:21 +00:00
Infer type of match guard
This commit is contained in:
parent
3f4f50baaa
commit
3daca3eb4d
10 changed files with 152 additions and 59 deletions
|
@ -1981,7 +1981,11 @@ impl ToOwned for MatchGuard {
|
|||
}
|
||||
|
||||
|
||||
impl MatchGuard {}
|
||||
impl MatchGuard {
|
||||
pub fn expr(&self) -> Option<&Expr> {
|
||||
super::child_opt(self)
|
||||
}
|
||||
}
|
||||
|
||||
// MethodCallExpr
|
||||
#[derive(Debug, PartialEq, Eq, Hash)]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue