Skip to content

Commit 2db1a56

Browse files
Update compiler/rustc_hir_typeck/messages.ftl
Co-authored-by: Jubilee <[email protected]>
1 parent 4a2830f commit 2db1a56

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: compiler/rustc_hir_typeck/messages.ftl

+1-1
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ hir_typeck_option_result_copied = use `{$def_path}::copied` to copy the value in
142142
hir_typeck_pass_to_variadic_function = can't pass `{$ty}` into variable arguments
143143
.suggestion = cast the value to `{$cast_ty}`
144144
.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
146146
147147
hir_typeck_remove_semi_for_coerce = you might have meant to return the `match` expression
148148
hir_typeck_remove_semi_for_coerce_expr = this could be implicitly returned but it is a statement, not a tail expression

0 commit comments

Comments
 (0)