We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d800196 commit a87f9a3Copy full SHA for a87f9a3
src/doc/unstable-book/src/compiler-flags/annotate-moves.md
@@ -62,6 +62,14 @@ Stack traces will show the operations:
62
2: my_function
63
```
64
65
+The `compiler_move` and `compiler_copy` functions have two generic parameters:
66
+the type being moved/copied and its size in bytes. The size is identical to
67
+`size_of::<T>()`, and is present just so that it's easy to immediately tell how
68
+large the copy is.
69
+
70
+Note that this requires v0 mangling to be properly encoded; legacy mangling does
71
+not substitute these with a specific type and size.
72
73
## Example
74
75
```rust
0 commit comments