-
Notifications
You must be signed in to change notification settings - Fork 12.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Resolves issue #12157. `do` is hereby reinstated as a keyword; no syntax is associated with it though. Along the way, a unit test had to be adapted, since it was using `do` as a method identifier. Breaking changes: - Any code using `do` as an identifier will no longer work.
- Loading branch information
Showing
3 changed files
with
17 additions
and
3 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
// Copyright 2013 The Rust Project Developers. See the COPYRIGHT | ||
// file at the top-level directory of this distribution and at | ||
// http://rust-lang.org/COPYRIGHT. | ||
// | ||
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or | ||
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license | ||
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your | ||
// option. This file may not be copied, modified, or distributed | ||
// except according to those terms. | ||
|
||
fn main() { | ||
let do = "bar"; //~ error: ident | ||
} |
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
a2fab45
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 brson
at milibopp@a2fab45
a2fab45
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 aepsil0n/rust/feature/reserve_do_keyword = a2fab45 into auto
a2fab45
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.
aepsil0n/rust/feature/reserve_do_keyword = a2fab45 merged ok, testing candidate = 86e6a5c
a2fab45
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.
all tests pass:
success: http://buildbot.rust-lang.org/builders/auto-mac-32-opt/builds/4148
success: http://buildbot.rust-lang.org/builders/auto-mac-32-nopt-c/builds/1990
success: http://buildbot.rust-lang.org/builders/auto-mac-32-nopt-t/builds/1992
success: http://buildbot.rust-lang.org/builders/auto-mac-64-opt/builds/4147
success: http://buildbot.rust-lang.org/builders/auto-mac-64-nopt-c/builds/3247
success: http://buildbot.rust-lang.org/builders/auto-mac-64-nopt-t/builds/3253
success: http://buildbot.rust-lang.org/builders/auto-linux-32-opt/builds/4162
success: http://buildbot.rust-lang.org/builders/auto-linux-32-nopt-c/builds/3250
success: http://buildbot.rust-lang.org/builders/auto-linux-32-nopt-t/builds/3256
success: http://buildbot.rust-lang.org/builders/auto-linux-64-opt/builds/4164
success: http://buildbot.rust-lang.org/builders/auto-linux-64-nopt-c/builds/3250
success: http://buildbot.rust-lang.org/builders/auto-linux-64-nopt-t/builds/3255
success: http://buildbot.rust-lang.org/builders/auto-linux-64-x-android/builds/3324
success: http://buildbot.rust-lang.org/builders/auto-linux-64-x-android-t/builds/1102
success: http://buildbot.rust-lang.org/builders/auto-win-32-opt/builds/4155
success: http://buildbot.rust-lang.org/builders/auto-win-32-nopt-c/builds/3256
success: http://buildbot.rust-lang.org/builders/auto-win-32-nopt-t/builds/3261
success: http://buildbot.rust-lang.org/builders/auto-bsd-64-opt/builds/3924
a2fab45
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.
fast-forwarding master to auto = 86e6a5c