Skip to content

Commit 4d33876

Browse files
kjetilkjekaworkingjubilee
authored and
Kjetil Kjeka
committed
Documentation and error message improvements related to PassMode::Direct assert
Co-authored-by: Jubilee <[email protected]>
1 parent 84c9c4a commit 4d33876

File tree

1 file changed

+2
-2
lines changed
  • compiler/rustc_codegen_llvm/src

1 file changed

+2
-2
lines changed

compiler/rustc_codegen_llvm/src/abi.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -363,13 +363,13 @@ impl<'ll, 'tcx> FnAbiLlvmExt<'ll, 'tcx> for FnAbi<'tcx, Ty<'tcx>> {
363363
// shouldn't let any more targets do that.
364364
// (Also see <https://github.com/rust-lang/rust/issues/115666>.)
365365
//
366-
// The unstable api `PtxKernel` also uses Direct for now.
366+
// The unstable abi `PtxKernel` also uses Direct for now.
367367
// It needs to switch to something else before stabilization can happen.
368368
// (Tracking issue abi_ptx: https://github.com/rust-lang/rust/issues/38788)
369369
assert!(
370370
matches!(&*cx.tcx.sess.target.arch, "wasm32" | "wasm64")
371371
|| self.conv == Conv::PtxKernel,
372-
"`PassMode::Direct` for aggregates only allowed on wasm targets\nProblematic type: {:#?}",
372+
"`PassMode::Direct` for aggregates only allowed on wasm and `extern \"ptx-kernel\"` fns\nProblematic type: {:#?}",
373373
arg.layout,
374374
);
375375
}

0 commit comments

Comments
 (0)