Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Parse fully-qualified associated types in generics without whitespace
This breaks code that looks like this: let x = foo as bar << 13; Change such code to look like this: let x = (foo as bar) << 13; Closes #17362. [breaking-change]
- Loading branch information
Showing
10 changed files
with
53 additions
and
59 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
// Copyright 2014 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. | ||
|
||
#![feature(associated_types)] | ||
|
||
trait Foo { | ||
type T; | ||
fn foo() -> Box<<Self as Foo>::T>; | ||
} | ||
|
||
fn main() {} |
d9769ec
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 ftxqxd@d9769ec
d9769ec
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 P1start/rust/qualified-assoc-type-generics = d9769ec into auto
d9769ec
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.
status: {"merge_sha": "9c3e6082e71618c088afd93f7a4a9a7708c9dcbd"}
d9769ec
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.
P1start/rust/qualified-assoc-type-generics = d9769ec merged ok, testing candidate = 9c3e608
d9769ec
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/2988
success: http://buildbot.rust-lang.org/builders/auto-mac-64-opt/builds/2982
success: http://buildbot.rust-lang.org/builders/auto-mac-64-nopt-t/builds/2983
success: http://buildbot.rust-lang.org/builders/auto-linux-32-opt/builds/2974
success: http://buildbot.rust-lang.org/builders/auto-linux-32-nopt-t/builds/2974
success: http://buildbot.rust-lang.org/builders/auto-linux-64-opt/builds/2977
success: http://buildbot.rust-lang.org/builders/auto-linux-64-nopt-t/builds/2970
success: http://buildbot.rust-lang.org/builders/auto-linux-64-x-android-t/builds/2965
success: http://buildbot.rust-lang.org/builders/auto-win-32-opt/builds/2641
success: http://buildbot.rust-lang.org/builders/auto-win-32-nopt-t/builds/2639
success: http://buildbot.rust-lang.org/builders/auto-win-64-opt/builds/1478
success: http://buildbot.rust-lang.org/builders/auto-win-64-nopt-t/builds/1469
d9769ec
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 = 9c3e608
d9769ec
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 = 9c3e608