diff options
author | Unreal Hoang <[email protected]> | 2019-07-20 11:35:49 +0100 |
---|---|---|
committer | Unreal Hoang <[email protected]> | 2019-07-20 11:35:49 +0100 |
commit | 5ac9f5cdc7a88dcb9545d2e150780c8edee83b06 (patch) | |
tree | 7893e33a7b7cf986b14d60fd1cf50c03d2403a24 /crates/ra_hir/src/ty | |
parent | 2830d1376b05794c7bf1467fe52ad3bc0eb4ca41 (diff) |
add await expr to ast
Diffstat (limited to 'crates/ra_hir/src/ty')
-rw-r--r-- | crates/ra_hir/src/ty/infer.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/crates/ra_hir/src/ty/infer.rs b/crates/ra_hir/src/ty/infer.rs index 0e030576d..6eae595a9 100644 --- a/crates/ra_hir/src/ty/infer.rs +++ b/crates/ra_hir/src/ty/infer.rs | |||
@@ -1114,6 +1114,9 @@ impl<'a, D: HirDatabase> InferenceContext<'a, D> { | |||
1114 | .unwrap_or(Ty::Unknown); | 1114 | .unwrap_or(Ty::Unknown); |
1115 | self.insert_type_vars(ty) | 1115 | self.insert_type_vars(ty) |
1116 | } | 1116 | } |
1117 | Expr::Await { .. } => { | ||
1118 | Ty::Unknown | ||
1119 | } | ||
1117 | Expr::Try { expr } => { | 1120 | Expr::Try { expr } => { |
1118 | let inner_ty = self.infer_expr(*expr, &Expectation::none()); | 1121 | let inner_ty = self.infer_expr(*expr, &Expectation::none()); |
1119 | let ty = match self.resolve_ops_try_ok() { | 1122 | let ty = match self.resolve_ops_try_ok() { |