From bf51cee4311f5715c2eac675e95fb3d4f2909404 Mon Sep 17 00:00:00 2001 From: Clyybber Date: Thu, 9 Jul 2020 17:59:40 +0200 Subject: [PATCH] Update docs and changelog --- changelog.md | 2 ++ doc/destructors.rst | 7 ++++--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/changelog.md b/changelog.md index 1eda82297..36582eee2 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 4285bad8b..fefc646f5 100644 --- a/doc/destructors.rst +++ b/doc/destructors.rst @@ -39,12 +39,12 @@ written as: if x.data != nil: for i in 0..