Skip to content

Commit

Permalink
Rename function to suggest_accessing_field_where_appropriate
Browse files Browse the repository at this point in the history
  • Loading branch information
hkmatsumoto committed Jan 30, 2021
1 parent 2ce2d14 commit 6bc9634
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions compiler/rustc_infer/src/infer/error_reporting/mod.rs
Expand Up @@ -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);
}

Expand Down Expand Up @@ -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>>,
Expand Down

0 comments on commit 6bc9634

Please sign in to comment.