Rollup merge of #155306 - DanielEScherzer:cvalue-zst-article, r=JohnTitor

`CValue::zst()` - add missing "ZST" in docs
This commit is contained in:
Jonathan Brouwer
2026-04-15 14:39:08 +02:00
committed by GitHub
@@ -98,7 +98,7 @@ pub(crate) fn by_val_pair(
/// Create an instance of a ZST
///
/// The is represented by a dangling pointer of suitable alignment.
/// The ZST is represented by a dangling pointer of suitable alignment.
pub(crate) fn zst(layout: TyAndLayout<'tcx>) -> CValue<'tcx> {
assert!(layout.is_zst());
CValue::by_ref(crate::Pointer::dangling(layout.align.abi), layout)