e: &'tcx Expr<'_>,
from_ty: Ty<'tcx>,
to_ty: Ty<'tcx>,
- args: &'tcx [Expr<'_>],
+ arg: &'tcx Expr<'_>,
const_context: bool,
) -> bool {
match (&from_ty.kind(), &to_ty.kind()) {
e.span,
&format!("transmute from a `{}` to a `{}`", from_ty, to_ty),
|diag| {
- let arg = sugg::Sugg::hir(cx, &args[0], "..");
+ let arg = sugg::Sugg::hir(cx, arg, "..");
diag.span_suggestion(
e.span,
"consider using `to_ne_bytes()`",