Skip to content

Commit 4a81bca

Browse files
committed
[SIL.rst] Add to copy_value's docs that in non-Raw SIL, one cannot give copy_value a move only value as an operand.
I am enforcing this in the verifier, so it makes sense to document in SIL.rst.
1 parent 3bdfa23 commit 4a81bca

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

docs/SIL.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5583,6 +5583,8 @@ independent of the operand. In terms of specific types:
55835583
In ownership qualified functions, a ``copy_value`` produces a +1 value that must
55845584
be consumed at most once along any path through the program.
55855585

5586+
It is illegal in non-Raw SIL to `copy_value`_ a value that is "move only".
5587+
55865588
explicit_copy_value
55875589
```````````````````
55885590

0 commit comments

Comments
 (0)