Auto merge of #125695 - RalfJung:fn_arg_sanity_check, r=jieyouxu
fn_arg_sanity_check: fix panic message The `\n` inside a raw string doesn't actually make a newline...
This commit is contained in:
commit
4cf5723dbe
2 changed files with 3 additions and 1 deletions
|
@ -520,7 +520,8 @@ fn fn_abi_sanity_check<'tcx>(
|
|||
assert!(
|
||||
matches!(&*cx.tcx.sess.target.arch, "wasm32" | "wasm64")
|
||||
|| matches!(spec_abi, SpecAbi::PtxKernel | SpecAbi::Unadjusted),
|
||||
r#"`PassMode::Direct` for aggregates only allowed for "unadjusted" and "ptx-kernel" functions and on wasm\nProblematic type: {:#?}"#,
|
||||
"`PassMode::Direct` for aggregates only allowed for \"unadjusted\" and \"ptx-kernel\" functions and on wasm\n\
|
||||
Problematic type: {:#?}",
|
||||
arg.layout,
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue