Skip to content

Commit 9065889

Browse files
committed
Rename some functions
1 parent 4d72c42 commit 9065889

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

compiler/rustc_hir_typeck/src/method/suggest.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -607,7 +607,7 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
607607

608608
// We could pass the file for long types into these two, but it isn't strictly necessary
609609
// given how targeted they are.
610-
if let Err(guar) = self.suggest_wrapping_range_with_parens(
610+
if let Err(guar) = self.report_failed_method_call_on_range_end(
611611
tcx,
612612
rcvr_ty,
613613
source,
@@ -617,7 +617,7 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
617617
) {
618618
return guar;
619619
}
620-
if let Err(guar) = self.suggest_constraining_numerical_ty(
620+
if let Err(guar) = self.report_failed_method_call_on_numerical_infer_var(
621621
tcx,
622622
rcvr_ty,
623623
source,
@@ -2253,7 +2253,7 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
22532253

22542254
/// Suggest possible range with adding parentheses, for example:
22552255
/// when encountering `0..1.map(|i| i + 1)` suggest `(0..1).map(|i| i + 1)`.
2256-
fn suggest_wrapping_range_with_parens(
2256+
fn report_failed_method_call_on_range_end(
22572257
&self,
22582258
tcx: TyCtxt<'tcx>,
22592259
actual: Ty<'tcx>,
@@ -2335,7 +2335,7 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
23352335
Ok(())
23362336
}
23372337

2338-
fn suggest_constraining_numerical_ty(
2338+
fn report_failed_method_call_on_numerical_infer_var(
23392339
&self,
23402340
tcx: TyCtxt<'tcx>,
23412341
actual: Ty<'tcx>,

0 commit comments

Comments
 (0)