Skip to content

Commit 6bc9634

Browse files
committed
Rename function to suggest_accessing_field_where_appropriate
1 parent 2ce2d14 commit 6bc9634

File tree

1 file changed

+2
-2
lines changed
  • compiler/rustc_infer/src/infer/error_reporting

1 file changed

+2
-2
lines changed

compiler/rustc_infer/src/infer/error_reporting/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1661,7 +1661,7 @@ impl<'a, 'tcx> InferCtxt<'a, 'tcx> {
16611661
debug!("exp_found {:?} terr {:?}", exp_found, terr);
16621662
if let Some(exp_found) = exp_found {
16631663
self.suggest_as_ref_where_appropriate(span, &exp_found, diag);
1664-
self.suggest_field_where_appropriate(cause, &exp_found, diag);
1664+
self.suggest_accessing_field_where_appropriate(cause, &exp_found, diag);
16651665
self.suggest_await_on_expect_found(cause, span, &exp_found, diag);
16661666
}
16671667

@@ -1820,7 +1820,7 @@ impl<'a, 'tcx> InferCtxt<'a, 'tcx> {
18201820
}
18211821
}
18221822

1823-
fn suggest_field_where_appropriate(
1823+
fn suggest_accessing_field_where_appropriate(
18241824
&self,
18251825
cause: &ObligationCause<'tcx>,
18261826
exp_found: &ty::error::ExpectedFound<Ty<'tcx>>,

0 commit comments

Comments
 (0)