-
Notifications
You must be signed in to change notification settings - Fork 12.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
librustc: Eliminate the
ref
syntax for unboxed closure capture clauses
in favor of `move`. This breaks code that used `move` as an identifier, because it is now a keyword. Change such identifiers to not use the keyword `move`. Additionally, this breaks code that was counting on by-value or by-reference capture semantics for unboxed closures (behind the feature gate). Change `ref |:|` to `|:|` and `|:|` to `move |:|`. Part of RFC #63; part of issue #12831. [breaking-change]
- Loading branch information
Showing
14 changed files
with
82 additions
and
81 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2257e23
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
saw approval from nikomatsakis
at pcwalton@2257e23
2257e23
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
merging pcwalton/rust/unboxed-closure-move-syntax = 2257e23 into auto
2257e23
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pcwalton/rust/unboxed-closure-move-syntax = 2257e23 merged ok, testing candidate = 9c2e758f
2257e23
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
some tests failed:
failure: http://buildbot.rust-lang.org/builders/auto-mac-64-opt/builds/1562
exception: http://buildbot.rust-lang.org/builders/auto-mac-32-opt/builds/1565
exception: http://buildbot.rust-lang.org/builders/auto-mac-64-nopt-c/builds/1556
exception: http://buildbot.rust-lang.org/builders/auto-mac-64-nopt-t/builds/1562
exception: http://buildbot.rust-lang.org/builders/auto-linux-32-opt/builds/1559
exception: http://buildbot.rust-lang.org/builders/auto-linux-32-nopt-c/builds/1558
exception: http://buildbot.rust-lang.org/builders/auto-linux-32-nopt-t/builds/1558
exception: http://buildbot.rust-lang.org/builders/auto-linux-64-opt/builds/1562
exception: http://buildbot.rust-lang.org/builders/auto-linux-64-nopt-c/builds/1556
exception: http://buildbot.rust-lang.org/builders/auto-linux-64-nopt-t/builds/1555
exception: http://buildbot.rust-lang.org/builders/auto-linux-64-x-android-t/builds/1558
exception: http://buildbot.rust-lang.org/builders/auto-win-64-opt/builds/47
exception: http://buildbot.rust-lang.org/builders/auto-win-64-nopt-t/builds/46
2257e23
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
saw approval from nikomatsakis
at pcwalton@2257e23
2257e23
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
merging pcwalton/rust/unboxed-closure-move-syntax = 2257e23 into auto
2257e23
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pcwalton/rust/unboxed-closure-move-syntax = 2257e23 merged ok, testing candidate = 792ce65d
2257e23
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
some tests failed:
failure: http://buildbot.rust-lang.org/builders/auto-linux-64-opt/builds/1566
exception: http://buildbot.rust-lang.org/builders/auto-mac-32-opt/builds/1569
exception: http://buildbot.rust-lang.org/builders/auto-mac-64-opt/builds/1566
exception: http://buildbot.rust-lang.org/builders/auto-mac-64-nopt-c/builds/1560
exception: http://buildbot.rust-lang.org/builders/auto-mac-64-nopt-t/builds/1566
exception: http://buildbot.rust-lang.org/builders/auto-linux-32-opt/builds/1563
exception: http://buildbot.rust-lang.org/builders/auto-linux-32-nopt-c/builds/1562
exception: http://buildbot.rust-lang.org/builders/auto-linux-32-nopt-t/builds/1562
exception: http://buildbot.rust-lang.org/builders/auto-linux-64-nopt-c/builds/1560
exception: http://buildbot.rust-lang.org/builders/auto-linux-64-nopt-t/builds/1559
exception: http://buildbot.rust-lang.org/builders/auto-linux-64-x-android-t/builds/1562
exception: http://buildbot.rust-lang.org/builders/auto-win-32-opt/builds/1217
exception: http://buildbot.rust-lang.org/builders/auto-win-32-nopt-t/builds/1216
exception: http://buildbot.rust-lang.org/builders/auto-win-64-opt/builds/52