authorgravatar for mlugg@mlugg.co.ukMatthew Lugg <mlugg@mlugg.co.uk> 2025-01-29 06:51:23+00:00
committergravatar for mlugg@mlugg.co.ukMatthew Lugg <mlugg@mlugg.co.uk> 2025-01-29 18:43:57+00:00
log249a20d972489cf8eb0e9c3b126f358fc1643eb2
treeb073882c55f9b904d303185061e77bc6232cf6aa
parent107b65ec5dccd360410b4a693bb0caf0015312f3

langref: clarify restricted `@memcpy` semantics


1 files changed, 2 insertions(+), 3 deletions(-)

doc/langref.html.in+2-3
......@@ -5120,9 +5120,8 @@ fn cmpxchgWeakButNotAtomic(comptime T: type, ptr: *T, expected_value: T, new_val
51205120 <p>{#syntax#}source{#endsyntax#} must be a slice, a pointer to
51215121 an array, or a many-item {#link|pointer|Pointers#}. It may
51225122 have any alignment, and it may have any element type.</p>
5123 <p>The {#syntax#}source{#endsyntax#} element type must support {#link|Type Coercion#}
5124 into the {#syntax#}dest{#endsyntax#} element type. The element types may have
5125 different ABI size, however, that may incur a performance penalty.</p>
5123 <p>The {#syntax#}source{#endsyntax#} element type must have the same in-memory
5124 representation as the {#syntax#}dest{#endsyntax#} element type.</p>
51265125 <p>Similar to {#link|for#} loops, at least one of {#syntax#}source{#endsyntax#} and
51275126 {#syntax#}dest{#endsyntax#} must provide a length, and if two lengths are provided,
51285127 they must be equal.</p>