diff --git a/changelog.md b/changelog.md index 1eda82297d..36582eee2d 100644 --- a/changelog.md +++ b/changelog.md @@ -143,6 +143,8 @@ ## Language changes +- The `=destroy` hook no longer has to reset its target, as the compiler now automatically inserts + wasMoved calls where needed. - In the newruntime it is now allowed to assign to the discriminator field without restrictions as long as case object doesn't have custom destructor. The discriminator value doesn't have to be a constant either. If you have a diff --git a/doc/destructors.rst b/doc/destructors.rst index 4285bad8b1..fefc646f50 100644 --- a/doc/destructors.rst +++ b/doc/destructors.rst @@ -39,12 +39,12 @@ written as: if x.data != nil: for i in 0..