summary refs log tree commit diff stats
path: root/doc
diff options
context:
space:
mode:
authorringabout <43030857+ringabout@users.noreply.github.com>2023-03-02 12:29:40 +0800
committerGitHub <noreply@github.com>2023-03-02 05:29:40 +0100
commita137e50150cdbc48fcfb02064aa0c064fec4c7e8 (patch)
tree600d487e4989a715ade7bd15c0e0a3f0a39fe736 /doc
parent9948fed919389229a48347aa9fa5adce9b7e0a98 (diff)
downloadNim-a137e50150cdbc48fcfb02064aa0c064fec4c7e8.tar.gz
fixes #19291; implements `wasMoved` hook (#21303)
* fixes #19291; implements `wasMoved` hook

* basics

* checkpoint

* finish `wasMoved`

* add a test for #19291

* add documentation and changelog

* work `attachedWasMoved` with generics

* fixes optimizer

* register `=wasMoved`

* handle wasMoved magcis

* check another round

* some patches

* try `op == nil`

* nicer

* generate `wasMoved` before `destroy`

* try again

* fixes tests

* default wasMoved

* Update tests/destructor/tv2_cast.nim

* Update tests/destructor/tv2_cast.nim

* Update tests/arc/topt_refcursors.nim
Diffstat (limited to 'doc')
-rw-r--r--doc/manual.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/manual.md b/doc/manual.md
index ef790c362..31c620ca7 100644
--- a/doc/manual.md
+++ b/doc/manual.md
@@ -4122,7 +4122,7 @@ the operator is in scope (including if it is private).
   ```
 
 Type bound operators are:
-`=destroy`, `=copy`, `=sink`, `=trace`, `=deepcopy`.
+`=destroy`, `=copy`, `=sink`, `=trace`, `=deepcopy`, `=wasMoved`.
 
 These operations can be *overridden* instead of *overloaded*. This means that
 the implementation is automatically lifted to structured types. For instance,