mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 12:54:58 +00:00
Fix pattern field completions not working for unions
This commit is contained in:
parent
e1e93c4438
commit
8c9359b072
5 changed files with 140 additions and 116 deletions
|
@ -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>,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue