mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-30 22:01:37 +00:00
Resolve tuple variants in value namespace
This commit is contained in:
parent
0bee7cb716
commit
b596c32a41
4 changed files with 55 additions and 7 deletions
|
@ -437,7 +437,7 @@ impl<'a> InferenceContext<'a> {
|
|||
TyKind::Never.intern(&Interner)
|
||||
}
|
||||
Expr::RecordLit { path, fields, spread } => {
|
||||
let (ty, def_id) = self.resolve_variant(path.as_deref());
|
||||
let (ty, def_id) = self.resolve_variant(path.as_deref(), false);
|
||||
if let Some(variant) = def_id {
|
||||
self.write_variant_resolution(tgt_expr.into(), variant);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue