@@ -1935,7 +1935,7 @@ impl<'tcx> TypeErrCtxt<'_, 'tcx> {
19351935 // parentheses around it, perhaps the user meant to write `(expr,)` to
19361936 // build a tuple (issue #86100)
19371937 ( ty:: Tuple ( fields) , _) => {
1938- suggestions. extend ( self . tuple_wrap_err_subdiag ( span, found, fields) )
1938+ suggestions. extend ( self . suggest_wrap_to_build_a_tuple ( span, found, fields) )
19391939 }
19401940 // If a byte was expected and the found expression is a char literal
19411941 // containing a single ASCII character, perhaps the user meant to write `b'c'` to
@@ -1976,7 +1976,7 @@ impl<'tcx> TypeErrCtxt<'_, 'tcx> {
19761976 ( ty:: Bool , ty:: Tuple ( list) ) => if list. len ( ) == 0 {
19771977 suggestions. extend ( self . suggest_let_for_letchains ( & trace. cause , span) ) ;
19781978 }
1979- ( ty:: Array ( _, _) , ty:: Array ( _, _) ) => suggestions. extend ( self . specify_actual_length ( terr, trace, span) ) ,
1979+ ( ty:: Array ( _, _) , ty:: Array ( _, _) ) => suggestions. extend ( self . suggest_specify_actual_length ( terr, trace, span) ) ,
19801980 _ => { }
19811981 }
19821982 }
@@ -1990,7 +1990,7 @@ impl<'tcx> TypeErrCtxt<'_, 'tcx> {
19901990 suggestions
19911991 }
19921992
1993- fn specify_actual_length (
1993+ fn suggest_specify_actual_length (
19941994 & self ,
19951995 terr : TypeError < ' _ > ,
19961996 trace : & TypeTrace < ' _ > ,
@@ -2068,7 +2068,7 @@ impl<'tcx> TypeErrCtxt<'_, 'tcx> {
20682068 diag
20692069 }
20702070
2071- fn tuple_wrap_err_subdiag (
2071+ fn suggest_wrap_to_build_a_tuple (
20722072 & self ,
20732073 span : Span ,
20742074 found : Ty < ' tcx > ,
0 commit comments