From 059995be98058b746d8a73f81218cb167e1300e9 Mon Sep 17 00:00:00 2001 From: Dicebot Date: Tue, 15 Nov 2016 16:33:33 +0200 Subject: [PATCH] Remove all mentions of -transition=safe from changelog It won't be present in 2.072.0 in any form (2.072.1 will remove last traces of it), thus mention in the changelog only spreads confusion. --- changelog/2.072.0.dd | 37 ------------------------------------- 1 file changed, 37 deletions(-) diff --git a/changelog/2.072.0.dd b/changelog/2.072.0.dd index cf71a9d2c2..cce3c85158 100644 --- a/changelog/2.072.0.dd +++ b/changelog/2.072.0.dd @@ -20,7 +20,6 @@ $(BUGSTITLE Language Changes, $(BUGSTITLE Compiler Changes, $(LI $(RELATIVE_LINK2 iteration_closure, `opApply` now conservatively allocates a closure unless marked `scope`)) - $(LI $(RELATIVE_LINK2 dash_safe, Add `-transition=safe` switch to enable additional `@safe` checks.)) $(LI $(RELATIVE_LINK2 native_tls_osx, Native TLS on OS X 64 bit.)) $(LI $(RELATIVE_LINK2 deferred_alias, Analysis for aliases in imported modules is deferred.)) $(LI $(RELATIVE_LINK2 __FILE_FULL_PATH__, Special keyword replaced by the source file's absolute file name.)) @@ -250,42 +249,6 @@ $(BUGSTITLE Language Changes, ) $(BUGSTITLE Compiler Changes, - $(LI $(LNAME2 iteration_closure, `opApply` now conservatively allocates a closure unless marked `scope`) - - $(P This breaking change was required to fix bug with `@safe` violation: $(BUGZILLA 16193).) - - $(P To list all places where closure may be allocated after the change, use `-transition=safe` - compiler switch.) - - $(P Example:) - - --- - struct S1 { - int opApply(int delegate(int) dg); - } - - struct S2 { - int opApply(scope int delegate(int) dg); - } - - void foo() { - foreach(i; S1.init) { // will allocate closure - } - foreach(i; S2.init) { // won't allocate closure - } - } - --- - ) - - $(LI $(LNAME2 dash_safe, Add `-transition=safe` switch to enable additional `@safe` checks.) - $(P Enables enhanced `@safe` checking, which will break some existing code.) - $(UL - $(LI Prevents dereferencing `array.ptr` because that bypasses array bounds check.) - $(LI Assumes opApply delegate parameter escapes unless marked `scope`. Escaping - delegates often require a GC allocated closure.) - ) - ) - $(LI $(LNAME2 native_tls_osx, Native TLS on OS X 64 bit.) $(P