Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixes #19291; implements wasMoved hook #21303

Merged
merged 21 commits into from
Mar 2, 2023
Merged

fixes #19291; implements wasMoved hook #21303

merged 21 commits into from
Mar 2, 2023

Conversation

ringabout
Copy link
Member

@ringabout ringabout marked this pull request as ready for review February 9, 2023 09:52
@ringabout ringabout marked this pull request as draft February 9, 2023 10:23
@ringabout
Copy link
Member Author

Working on it today...

@ringabout
Copy link
Member Author

ringabout commented Feb 14, 2023

There is a problem left. I don't mess with object variants for now.

@ringabout ringabout marked this pull request as ready for review February 15, 2023 10:45
@Araq Araq merged commit a137e50 into devel Mar 2, 2023
@Araq Araq deleted the pr_wasmoved branch March 2, 2023 04:29
@github-actions
Copy link
Contributor

github-actions bot commented Mar 2, 2023

Thanks for your hard work on this PR!
The lines below are statistics of the Nim compiler built from a137e50

Hint: mm: orc; opt: speed; options: -d:release
166343 lines; 9.932s; 612.34MiB peakmem

capocasa pushed a commit to capocasa/Nim that referenced this pull request Mar 31, 2023
* fixes nim-lang#19291; implements `wasMoved` hook

* basics

* checkpoint

* finish `wasMoved`

* add a test for nim-lang#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
bung87 pushed a commit to bung87/Nim that referenced this pull request Jul 29, 2023
* fixes nim-lang#19291; implements `wasMoved` hook

* basics

* checkpoint

* finish `wasMoved`

* add a test for nim-lang#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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

=sink .error is not respected
2 participants