-
Notifications
You must be signed in to change notification settings - Fork 12.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
librustc: Implement the syntax in the RFC for unboxed closure sugar.
Part of issue #16640. I am leaving this issue open to handle parsing of higher-rank lifetimes in traits. This change breaks code that used unboxed closures: * Instead of `F:|&: int| -> int`, write `F:Fn(int) -> int`. * Instead of `F:|&mut: int| -> int`, write `F:FnMut(int) -> int`. * Instead of `F:|: int| -> int`, write `F:FnOnce(int) -> int`. [breaking-change]
- Loading branch information
Showing
17 changed files
with
207 additions
and
117 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
Oops, something went wrong.
7c00d77
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 alexcrichton
at pcwalton@7c00d77
7c00d77
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/right-unboxed-closure-sugar = 7c00d77 into auto
7c00d77
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/right-unboxed-closure-sugar = 7c00d77 merged ok, testing candidate = e441fed4
7c00d77
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-nopt-c/builds/1421
exception: http://buildbot.rust-lang.org/builders/auto-mac-64-opt/builds/1422
exception: http://buildbot.rust-lang.org/builders/auto-linux-32-opt/builds/1419
exception: http://buildbot.rust-lang.org/builders/auto-linux-32-nopt-c/builds/1418
exception: http://buildbot.rust-lang.org/builders/auto-linux-32-nopt-t/builds/1418
exception: http://buildbot.rust-lang.org/builders/auto-linux-64-opt/builds/1422
exception: http://buildbot.rust-lang.org/builders/auto-linux-64-nopt-c/builds/1416
exception: http://buildbot.rust-lang.org/builders/auto-linux-64-nopt-t/builds/1416
exception: http://buildbot.rust-lang.org/builders/auto-linux-64-x-android-t/builds/1419
exception: http://buildbot.rust-lang.org/builders/auto-win32-32-opt/builds/254
exception: http://buildbot.rust-lang.org/builders/auto-win32-32-nopt-t/builds/254
exception: http://buildbot.rust-lang.org/builders/auto-win32-32-nopt-c/builds/254
exception: http://buildbot.rust-lang.org/builders/auto-win64-64-nopt-c/builds/254
7c00d77
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 alexcrichton
at pcwalton@7c00d77
7c00d77
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/right-unboxed-closure-sugar = 7c00d77 into auto
7c00d77
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/right-unboxed-closure-sugar = 7c00d77 merged ok, testing candidate = 08e17c87
7c00d77
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 alexcrichton
at pcwalton@7c00d77
7c00d77
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/right-unboxed-closure-sugar = 7c00d77 into auto
7c00d77
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/right-unboxed-closure-sugar = 7c00d77 merged ok, testing candidate = d4381e3c
7c00d77
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:
exception: http://buildbot.rust-lang.org/builders/auto-mac-32-opt/builds/1445
exception: http://buildbot.rust-lang.org/builders/auto-mac-64-opt/builds/1444
exception: http://buildbot.rust-lang.org/builders/auto-mac-64-nopt-c/builds/1442
exception: http://buildbot.rust-lang.org/builders/auto-mac-64-nopt-t/builds/1443
exception: http://buildbot.rust-lang.org/builders/auto-linux-32-opt/builds/1441
exception: http://buildbot.rust-lang.org/builders/auto-linux-32-nopt-c/builds/1440
exception: http://buildbot.rust-lang.org/builders/auto-linux-32-nopt-t/builds/1440
exception: http://buildbot.rust-lang.org/builders/auto-linux-64-opt/builds/1444
exception: http://buildbot.rust-lang.org/builders/auto-linux-64-nopt-c/builds/1438
exception: http://buildbot.rust-lang.org/builders/auto-linux-64-nopt-t/builds/1438
exception: http://buildbot.rust-lang.org/builders/auto-linux-64-x-android-t/builds/1441
exception: http://buildbot.rust-lang.org/builders/auto-win32-32-opt/builds/275
exception: http://buildbot.rust-lang.org/builders/auto-win32-32-nopt-t/builds/275
exception: http://buildbot.rust-lang.org/builders/auto-win32-32-nopt-c/builds/276
exception: http://buildbot.rust-lang.org/builders/auto-win64-64-opt/builds/276
exception: http://buildbot.rust-lang.org/builders/auto-win64-64-nopt-t/builds/276
exception: http://buildbot.rust-lang.org/builders/auto-win64-64-nopt-c/builds/275
7c00d77
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:
exception: http://buildbot.rust-lang.org/builders/auto-mac-32-opt/builds/1445
exception: http://buildbot.rust-lang.org/builders/auto-mac-64-opt/builds/1444
exception: http://buildbot.rust-lang.org/builders/auto-mac-64-nopt-c/builds/1442
exception: http://buildbot.rust-lang.org/builders/auto-mac-64-nopt-t/builds/1443
exception: http://buildbot.rust-lang.org/builders/auto-linux-32-opt/builds/1441
exception: http://buildbot.rust-lang.org/builders/auto-linux-32-nopt-c/builds/1440
exception: http://buildbot.rust-lang.org/builders/auto-linux-32-nopt-t/builds/1440
exception: http://buildbot.rust-lang.org/builders/auto-linux-64-opt/builds/1444
exception: http://buildbot.rust-lang.org/builders/auto-linux-64-nopt-c/builds/1438
exception: http://buildbot.rust-lang.org/builders/auto-linux-64-nopt-t/builds/1438
exception: http://buildbot.rust-lang.org/builders/auto-linux-64-x-android-t/builds/1441
exception: http://buildbot.rust-lang.org/builders/auto-win32-32-opt/builds/275
exception: http://buildbot.rust-lang.org/builders/auto-win32-32-nopt-t/builds/275
exception: http://buildbot.rust-lang.org/builders/auto-win32-32-nopt-c/builds/276
exception: http://buildbot.rust-lang.org/builders/auto-win64-64-opt/builds/276
exception: http://buildbot.rust-lang.org/builders/auto-win64-64-nopt-t/builds/276
exception: http://buildbot.rust-lang.org/builders/auto-win64-64-nopt-c/builds/275