mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-27 18:57:42 +03:00
CValue::zst() - add missing "ZST" in docs
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user