You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: compiler/rustc_hir_typeck/messages.ftl
+2-2
Original file line number
Diff line number
Diff line change
@@ -139,10 +139,10 @@ hir_typeck_option_result_asref = use `{$def_path}::as_ref` to convert `{$expecte
139
139
hir_typeck_option_result_cloned = use `{$def_path}::cloned` to clone the value inside the `{$def_path}`
140
140
hir_typeck_option_result_copied = use `{$def_path}::copied` to copy the value inside the `{$def_path}`
141
141
142
-
hir_typeck_pass_to_variadic_function = can't pass `{$ty}` to variadic function
142
+
hir_typeck_pass_to_variadic_function = can't pass `{$ty}` into variable arguments
143
143
.suggestion = cast the value to `{$cast_ty}`
144
144
.help = cast the value to `{$cast_ty}`
145
-
.teach_help = certain types, like `{$ty}`, must be casted before passing them to a variadic function, because of arcane ABI rules dictated by the C standard
145
+
.teach_help = a `{$ty}` would be cast to `{$cast_ty}` by C's default argument promotion
146
146
147
147
hir_typeck_remove_semi_for_coerce = you might have meant to return the `match` expression
148
148
hir_typeck_remove_semi_for_coerce_expr = this could be implicitly returned but it is a statement, not a tail expression
0 commit comments