Fix pattern field completions not working for unions

This commit is contained in:
Lukas Wirth 2022-08-09 17:53:16 +02:00
parent e1e93c4438
commit 8c9359b072
5 changed files with 140 additions and 116 deletions

View file

@ -134,6 +134,7 @@ pub(crate) struct ExprCtx {
pub(crate) in_condition: bool,
pub(crate) incomplete_let: bool,
pub(crate) ref_expr_parent: Option<ast::RefExpr>,
/// The surrounding RecordExpression we are completing a functional update
pub(crate) is_func_update: Option<ast::RecordExpr>,
pub(crate) self_param: Option<hir::SelfParam>,
pub(crate) innermost_ret_ty: Option<hir::Type>,