Skip to content

Commit 7f8b1c8

Browse files
committed
fn_arg_sanity_check: fix panic message
1 parent da159eb commit 7f8b1c8

File tree

1 file changed

+2
-1
lines changed
  • compiler/rustc_ty_utils/src

1 file changed

+2
-1
lines changed

compiler/rustc_ty_utils/src/abi.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -520,7 +520,8 @@ fn fn_abi_sanity_check<'tcx>(
520520
assert!(
521521
matches!(&*cx.tcx.sess.target.arch, "wasm32" | "wasm64")
522522
|| matches!(spec_abi, SpecAbi::PtxKernel | SpecAbi::Unadjusted),
523-
r#"`PassMode::Direct` for aggregates only allowed for "unadjusted" and "ptx-kernel" functions and on wasm\nProblematic type: {:#?}"#,
523+
"`PassMode::Direct` for aggregates only allowed for \"unadjusted\" and \"ptx-kernel\" functions and on wasm\n
524+
Problematic type: {:#?}",
524525
arg.layout,
525526
);
526527
}

0 commit comments

Comments
 (0)