about summary refs log tree commit diff
diff options
context:
space:
mode:
authorHirochika Matsumoto <matsujika@gmail.com>2021-01-30 14:25:43 +0900
committerHirochika Matsumoto <matsujika@gmail.com>2021-01-30 14:25:43 +0900
commit6bc9634de3c7d8fd5684fb38b8fbaf7288df55bd (patch)
tree4cc40379aa1a7451b5d8e0106b73a22cd1743368
parent2ce2d145c2cbcb93389dbea429d7e034ff367f48 (diff)
downloadrust-6bc9634de3c7d8fd5684fb38b8fbaf7288df55bd.tar.gz
rust-6bc9634de3c7d8fd5684fb38b8fbaf7288df55bd.zip
Rename function to `suggest_accessing_field_where_appropriate`
-rw-r--r--compiler/rustc_infer/src/infer/error_reporting/mod.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_infer/src/infer/error_reporting/mod.rs b/compiler/rustc_infer/src/infer/error_reporting/mod.rs
index 447b4f6d1e5..3ccf85240a5 100644
--- a/compiler/rustc_infer/src/infer/error_reporting/mod.rs
+++ b/compiler/rustc_infer/src/infer/error_reporting/mod.rs
@@ -1661,7 +1661,7 @@ impl<'a, 'tcx> InferCtxt<'a, 'tcx> {
         debug!("exp_found {:?} terr {:?}", exp_found, terr);
         if let Some(exp_found) = exp_found {
             self.suggest_as_ref_where_appropriate(span, &exp_found, diag);
-            self.suggest_field_where_appropriate(cause, &exp_found, diag);
+            self.suggest_accessing_field_where_appropriate(cause, &exp_found, diag);
             self.suggest_await_on_expect_found(cause, span, &exp_found, diag);
         }
 
@@ -1820,7 +1820,7 @@ impl<'a, 'tcx> InferCtxt<'a, 'tcx> {
         }
     }
 
-    fn suggest_field_where_appropriate(
+    fn suggest_accessing_field_where_appropriate(
         &self,
         cause: &ObligationCause<'tcx>,
         exp_found: &ty::error::ExpectedFound<Ty<'tcx>>,