Skip to content

Conversation

@MartinNowak
Copy link
Member

This is intended as feature preview (hidden behind a switch). The implementation might still have a few bugs, but we want to test the design with a slightly broader audience.

WalterBright and others added 30 commits November 1, 2016 02:13
[scope] allow taking address of local in @safe code
revert changes to closure detection
infer return for 'maybescope' too
MartinNowak and others added 18 commits December 18, 2016 00:10
treat &a[i] same as &a if 'a' is static array
track assignment to static array member
stop escaping via initialization of 'this'
restrict escape this check to scope preview
fix Issue 16747 - Cannot have stack allocated classes in @safe code
Merge pull request #6279 from WalterBright/fix16747
fix improper determination of 'return this' status
fix Issue 17029 - [Reg 2.072] scope variable may not be returned
# Conflicts:
#	src/escape.d
Merge pull request #6363 from WalterBright/fix17029
…_scope

Conflicts:
	src/escape.d
	src/func.d
	src/globals.d
	src/mars.d
	src/mtype.d
	src/statementsem.d
	test/fail_compilation/test16193.d
Merge remote-tracking branch 'upstream/master' into merge_master_into_scope
- was active without any flags (-transition=safe)
- implementation of check w/ -transition=safe still seems incorrect
lvalues should be checked for escapes, not rvalues
@dlang-bot
Copy link
Contributor

Fix Bugzilla Description
8838 Slicing static arrays should be considered unsafe (@System)
14238 DIP25: escape checks can be circumvented with delegate
15544 Escaping fields to a heap delegate must be disallowed in @safe code

@MartinNowak MartinNowak merged commit f715090 into master Dec 31, 2016
@MartinNowak MartinNowak deleted the scope branch December 31, 2016 18:20
@WalterBright
Copy link
Member

thanks, @MartinNowak

@MartinNowak
Copy link
Member Author

MartinNowak commented Dec 31, 2016

Can we please keep using a feature branch for all the changes and fixes until 2.074? Delete all the scope branches in the dlang repo now, but we can easily recreated them.

@WalterBright
Copy link
Member

why? Now it's just conventional bug reports and fixes for dip1000 issues.

@nordlow
Copy link
Contributor

nordlow commented Jan 1, 2017

@CyberShadow
Copy link
Member

This pull request introduced a regression:
https://issues.dlang.org/show_bug.cgi?id=17445

@WalterBright
Copy link
Member

This pull request introduced a regression:

An example of why I don't like feature branches - somewhere in 1500 lines of changes is the problem.

@CyberShadow
Copy link
Member

It's usually not a problem to bisect inside the branch, it's just that Digger is not set up to do it by default.

@CyberShadow
Copy link
Member

Bisected it down to the scope PR and commit -> #5972 (comment)

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.

7 participants