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

Issue 6801 borrowck closures #12158

Merged
merged 33 commits into from
Feb 12, 2014
Merged
Changes from 1 commit
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
852a49f
std -- replaces uses where const borrows would be required
nikomatsakis Feb 7, 2014
96139bf
remove antiquated reflect test rather than bring it up to date
nikomatsakis Feb 7, 2014
6f571a6
libglob -- patch closure where const borrow would have helped
nikomatsakis Feb 7, 2014
0f5baad
container -- update example to contain scope of closure borrow
nikomatsakis Feb 7, 2014
0e005ab
to_str -- update to contain scope of closure
nikomatsakis Feb 9, 2014
f7e5d84
ty -- minor refactorings, helper methods
nikomatsakis Feb 7, 2014
64c9b5c
trans/datum -- move mutable variable into closure
nikomatsakis Feb 7, 2014
7286e35
error_reporting -- explain reborrowed upvar constraints in a hopefull…
nikomatsakis Feb 7, 2014
949e1c7
metadata -- remove tiny convenience closure that was causing conflict…
nikomatsakis Feb 7, 2014
b2b4c79
resolve -- rewrite conflict closure into method
nikomatsakis Feb 7, 2014
ca65c00
syntax/ext/format -- rewrite conflicting closures into methods
nikomatsakis Feb 7, 2014
7ba5bef
syntax/fold -- remove conflicting (and rather pointless) closures
nikomatsakis Feb 7, 2014
8b760fd
vec -- introduce local var to make clear what subportion is being bor…
nikomatsakis Feb 7, 2014
95c53c0
back/link -- introduce block to clarify scope of closure
nikomatsakis Feb 7, 2014
42cd820
ppaux -- add Repr implementations
nikomatsakis Feb 7, 2014
c9c8049
io -- introduce local to avoid conflicting borrow
nikomatsakis Feb 7, 2014
8dff89c
librustdoc -- move closure to clarify scope
nikomatsakis Feb 7, 2014
b0ac40a
sha2 -- introduce locals to clarify which subportions are being borrowed
nikomatsakis Feb 7, 2014
e3ca1c2
str -- borrow fields of self for use in closure since self.iter is bo…
nikomatsakis Feb 7, 2014
ec6d122
libsyntax -- combine two iter ops into one so that `fld` does not nee…
nikomatsakis Feb 7, 2014
7ffa67c
front -- collapse iterator actions that require access to the same &m…
nikomatsakis Feb 8, 2014
c756038
libgetopts -- fix unsafe sharing in closures
nikomatsakis Feb 9, 2014
56c5d4c
libsyntax -- fix unsafe sharing in closures
nikomatsakis Feb 9, 2014
844eab1
librustuv -- fix unsafe sharing in rustuv
nikomatsakis Feb 9, 2014
807def0
region -- Improve comments in region.rs
nikomatsakis Feb 7, 2014
b1962a2
add upvar_borrow_map to tcx and fcx in typeck
nikomatsakis Feb 7, 2014
d45dd27
regionck -- rewrite in terms of mem_categorization, compute upvar bor…
nikomatsakis Feb 7, 2014
db38192
mem_categorization -- parameterize over TYPER interface, treat upvar …
nikomatsakis Feb 7, 2014
6b8b751
borrowck -- treak borrows from closures like other borrows
nikomatsakis Feb 9, 2014
1bd7b18
dataflow -- do not consider the interprocedural case
nikomatsakis Feb 7, 2014
3805c54
test -- update tests with new error messages
nikomatsakis Feb 10, 2014
c9e3cb6
test -- add new tests specifically examining closure borrows
nikomatsakis Feb 10, 2014
484f0f1
Correct nits from @pcwalton
nikomatsakis Feb 11, 2014
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
mem_categorization -- parameterize over TYPER interface, treat upvar …
…refs as

deref'd borrowed pointers
  • Loading branch information
nikomatsakis committed Feb 11, 2014
commit db38192daf8eb20b17ddad22d2029dec0df2b203
Loading