Skip to content

Commit 180ab16

Browse files
committed
make teach_help message for cast-before-pass-to-variadic more precise
1 parent e7f4317 commit 180ab16

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/rustc_hir_typeck/messages.ftl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ hir_typeck_option_result_copied = use `{$def_path}::copied` to copy the value in
169169
170170
hir_typeck_pass_to_variadic_function = can't pass `{$ty}` to variadic function
171171
.suggestion = cast the value to `{$cast_ty}`
172-
.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
172+
.teach_help = certain types, like `{$ty}`, must be cast before passing them to a variadic function to match the implicit cast that a C compiler would perform as part of C's integer promotion rules
173173
174174
hir_typeck_ptr_cast_add_auto_to_object = cannot add {$traits_len ->
175175
[1] auto trait {$traits}

0 commit comments

Comments
 (0)