@@ -125,7 +125,7 @@ pub struct InferenceResult {
125125 field_resolutions : FxHashMap < ExprId , FieldId > ,
126126 /// For each field in record literal, records the field it resolves to.
127127 record_field_resolutions : FxHashMap < ExprId , FieldId > ,
128- record_field_pat_resolutions : FxHashMap < PatId , FieldId > ,
128+ record_pat_field_resolutions : FxHashMap < PatId , FieldId > ,
129129 /// For each struct literal, records the variant it resolves to.
130130 variant_resolutions : FxHashMap < ExprOrPatId , VariantId > ,
131131 /// For each associated item record what it resolves to
@@ -146,8 +146,8 @@ impl InferenceResult {
146146 pub fn record_field_resolution ( & self , expr : ExprId ) -> Option < FieldId > {
147147 self . record_field_resolutions . get ( & expr) . copied ( )
148148 }
149- pub fn record_field_pat_resolution ( & self , pat : PatId ) -> Option < FieldId > {
150- self . record_field_pat_resolutions . get ( & pat) . copied ( )
149+ pub fn record_pat_field_resolution ( & self , pat : PatId ) -> Option < FieldId > {
150+ self . record_pat_field_resolutions . get ( & pat) . copied ( )
151151 }
152152 pub fn variant_resolution_for_expr ( & self , id : ExprId ) -> Option < VariantId > {
153153 self . variant_resolutions . get ( & id. into ( ) ) . copied ( )
0 commit comments