@@ -1935,7 +1935,7 @@ impl<'tcx> TypeErrCtxt<'_, 'tcx> {
1935
1935
// parentheses around it, perhaps the user meant to write `(expr,)` to
1936
1936
// build a tuple (issue #86100)
1937
1937
( 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) )
1939
1939
}
1940
1940
// If a byte was expected and the found expression is a char literal
1941
1941
// containing a single ASCII character, perhaps the user meant to write `b'c'` to
@@ -1976,7 +1976,7 @@ impl<'tcx> TypeErrCtxt<'_, 'tcx> {
1976
1976
( ty:: Bool , ty:: Tuple ( list) ) => if list. len ( ) == 0 {
1977
1977
suggestions. extend ( self . suggest_let_for_letchains ( & trace. cause , span) ) ;
1978
1978
}
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) ) ,
1980
1980
_ => { }
1981
1981
}
1982
1982
}
@@ -1990,7 +1990,7 @@ impl<'tcx> TypeErrCtxt<'_, 'tcx> {
1990
1990
suggestions
1991
1991
}
1992
1992
1993
- fn specify_actual_length (
1993
+ fn suggest_specify_actual_length (
1994
1994
& self ,
1995
1995
terr : TypeError < ' _ > ,
1996
1996
trace : & TypeTrace < ' _ > ,
@@ -2068,7 +2068,7 @@ impl<'tcx> TypeErrCtxt<'_, 'tcx> {
2068
2068
diag
2069
2069
}
2070
2070
2071
- fn tuple_wrap_err_subdiag (
2071
+ fn suggest_wrap_to_build_a_tuple (
2072
2072
& self ,
2073
2073
span : Span ,
2074
2074
found : Ty < ' tcx > ,
0 commit comments