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
Rollup merge of rust-lang#133620 - dev-ardi:simplify-hir_typeck_pass_to_variadic_function, r=compiler-errors
Simplify hir_typeck_pass_to_variadic_function
r? `@compiler-errors`
This reworks a bit how the diagnostic is generated so that it does the same as rust-lang#133538
The `help` is useless now so I removed it
Copy file name to clipboardExpand all lines: compiler/rustc_hir_typeck/messages.ftl
-1
Original file line number
Diff line number
Diff line change
@@ -146,7 +146,6 @@ hir_typeck_option_result_copied = use `{$def_path}::copied` to copy the value in
146
146
147
147
hir_typeck_pass_to_variadic_function = can't pass `{$ty}` to variadic function
148
148
.suggestion = cast the value to `{$cast_ty}`
149
-
.help = cast the value to `{$cast_ty}`
150
149
.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
0 commit comments