aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_hir/src/code_model.rs
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2019-11-24 17:08:16 +0000
committerGitHub <[email protected]>2019-11-24 17:08:16 +0000
commita58db5712f4fc82845e9397f728815d389c3c38b (patch)
tree8f4d416bad74f75e43924981b1d2c2099ea50edc /crates/ra_hir/src/code_model.rs
parentac9ba5eb32073c16608acaa04324e7dc46d303d6 (diff)
parent63e3ea38d3ff7ab69b968e8962f33e82a4f978fb (diff)
Merge #2389
2389: Don't redo field resolution in the IDE r=matklad a=matklad Co-authored-by: Aleksey Kladov <[email protected]>
Diffstat (limited to 'crates/ra_hir/src/code_model.rs')
-rw-r--r--crates/ra_hir/src/code_model.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ra_hir/src/code_model.rs b/crates/ra_hir/src/code_model.rs
index 9f06b147c..a98f2f247 100644
--- a/crates/ra_hir/src/code_model.rs
+++ b/crates/ra_hir/src/code_model.rs
@@ -510,7 +510,7 @@ impl VariantDef {
510 } 510 }
511 } 511 }
512 512
513 pub fn field(self, db: &impl HirDatabase, name: &Name) -> Option<StructField> { 513 pub(crate) fn field(self, db: &impl HirDatabase, name: &Name) -> Option<StructField> {
514 match self { 514 match self {
515 VariantDef::Struct(it) => it.field(db, name), 515 VariantDef::Struct(it) => it.field(db, name),
516 VariantDef::EnumVariant(it) => it.field(db, name), 516 VariantDef::EnumVariant(it) => it.field(db, name),