aboutsummaryrefslogtreecommitdiff
path: root/crates
diff options
context:
space:
mode:
Diffstat (limited to 'crates')
-rw-r--r--crates/ra_hir_def/src/body/lower.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/ra_hir_def/src/body/lower.rs b/crates/ra_hir_def/src/body/lower.rs
index 49f5420d1..ea0ddeebc 100644
--- a/crates/ra_hir_def/src/body/lower.rs
+++ b/crates/ra_hir_def/src/body/lower.rs
@@ -18,7 +18,7 @@ use ra_syntax::{
18use test_utils::tested_by; 18use test_utils::tested_by;
19 19
20use crate::{ 20use crate::{
21 adt::{self, StructKind}, 21 adt::StructKind,
22 body::{Body, BodySourceMap, Expander, PatPtr, SyntheticSyntax}, 22 body::{Body, BodySourceMap, Expander, PatPtr, SyntheticSyntax},
23 builtin_type::{BuiltinFloat, BuiltinInt}, 23 builtin_type::{BuiltinFloat, BuiltinInt},
24 db::DefDatabase, 24 db::DefDatabase,
@@ -577,7 +577,7 @@ impl ExprCollector<'_> {
577 let vis = crate::visibility::Visibility::Public; // FIXME determine correctly 577 let vis = crate::visibility::Visibility::Public; // FIXME determine correctly
578 let favor_types = match def { 578 let favor_types = match def {
579 ModuleDefId::AdtId(AdtId::StructId(s)) => { 579 ModuleDefId::AdtId(AdtId::StructId(s)) => {
580 self.db.struct_data(s).variant_data.kind() == adt::StructKind::Record 580 self.db.struct_data(s).variant_data.kind() == StructKind::Record
581 } 581 }
582 _ => false, 582 _ => false,
583 }; 583 };