From 4d97f5f037c1b061215d4b0fb32d48a1b8be836f Mon Sep 17 00:00:00 2001 From: Pavan Kumar Sunkara Date: Sat, 5 Sep 2020 03:06:05 +0200 Subject: Rename record_field_pat to record_pat_field --- crates/hir_ty/src/infer.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'crates/hir_ty/src/infer.rs') diff --git a/crates/hir_ty/src/infer.rs b/crates/hir_ty/src/infer.rs index 03b00b101..2b53b8297 100644 --- a/crates/hir_ty/src/infer.rs +++ b/crates/hir_ty/src/infer.rs @@ -125,7 +125,7 @@ pub struct InferenceResult { field_resolutions: FxHashMap, /// For each field in record literal, records the field it resolves to. record_field_resolutions: FxHashMap, - record_field_pat_resolutions: FxHashMap, + record_pat_field_resolutions: FxHashMap, /// For each struct literal, records the variant it resolves to. variant_resolutions: FxHashMap, /// For each associated item record what it resolves to @@ -146,8 +146,8 @@ impl InferenceResult { pub fn record_field_resolution(&self, expr: ExprId) -> Option { self.record_field_resolutions.get(&expr).copied() } - pub fn record_field_pat_resolution(&self, pat: PatId) -> Option { - self.record_field_pat_resolutions.get(&pat).copied() + pub fn record_pat_field_resolution(&self, pat: PatId) -> Option { + self.record_pat_field_resolutions.get(&pat).copied() } pub fn variant_resolution_for_expr(&self, id: ExprId) -> Option { self.variant_resolutions.get(&id.into()).copied() -- cgit v1.2.3