-
Notifications
You must be signed in to change notification settings - Fork 13.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
76 additions
and
88 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -151,9 +151,6 @@ register_diagnostics!( | |
E0172, | ||
E0173, | ||
E0174, | ||
E0175, | ||
E0176, | ||
E0177, | ||
E0178, | ||
E0179 | ||
E0178 | ||
) |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
// 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. | ||
|
||
// Check that an associated type cannot be bound in an expression path. | ||
|
||
#![feature(associated_types)] | ||
|
||
trait Foo { | ||
type A; | ||
fn bar() -> int; | ||
} | ||
|
||
impl Foo for int { | ||
type A = uint; | ||
fn bar() -> int { 42 } | ||
} | ||
|
||
pub fn main() { | ||
let x: int = Foo::<A=uint>::bar(); | ||
//~^ERROR unexpected binding of associated item in expression path | ||
} |
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
ce4318a
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 nrc@ce4318a
ce4318a
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 nick29581/rust/assoc-eq = ce4318a into auto
ce4318a
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.
nick29581/rust/assoc-eq = ce4318a merged ok, testing candidate = ab6a1d54
ce4318a
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/2646
ce4318a
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 nrc@ce4318a
ce4318a
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 nick29581/rust/assoc-eq = ce4318a into auto
ce4318a
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.
nick29581/rust/assoc-eq = ce4318a merged ok, testing candidate = 9c8bcbd
ce4318a
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/2656
exception: http://buildbot.rust-lang.org/builders/auto-mac-32-opt/builds/2661
exception: http://buildbot.rust-lang.org/builders/auto-mac-64-nopt-t/builds/2657
exception: http://buildbot.rust-lang.org/builders/auto-linux-32-opt/builds/2648
exception: http://buildbot.rust-lang.org/builders/auto-linux-32-nopt-t/builds/2647
exception: http://buildbot.rust-lang.org/builders/auto-linux-64-opt/builds/2651
exception: http://buildbot.rust-lang.org/builders/auto-linux-64-nopt-t/builds/2643
exception: http://buildbot.rust-lang.org/builders/auto-linux-64-x-android-t/builds/2643
exception: http://buildbot.rust-lang.org/builders/auto-win-32-opt/builds/2308
exception: http://buildbot.rust-lang.org/builders/auto-win-32-nopt-t/builds/2305
exception: http://buildbot.rust-lang.org/builders/auto-win-64-opt/builds/1147
exception: http://buildbot.rust-lang.org/builders/auto-win-64-nopt-t/builds/1141
ce4318a
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 nrc@ce4318a
ce4318a
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 nick29581/rust/assoc-eq = ce4318a into auto
ce4318a
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.
nick29581/rust/assoc-eq = ce4318a merged ok, testing candidate = 9146a91
ce4318a
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/2662
success: http://buildbot.rust-lang.org/builders/auto-mac-64-opt/builds/2657
success: http://buildbot.rust-lang.org/builders/auto-mac-64-nopt-t/builds/2658
success: http://buildbot.rust-lang.org/builders/auto-linux-32-opt/builds/2649
success: http://buildbot.rust-lang.org/builders/auto-linux-32-nopt-t/builds/2648
success: http://buildbot.rust-lang.org/builders/auto-linux-64-opt/builds/2652
success: http://buildbot.rust-lang.org/builders/auto-linux-64-nopt-t/builds/2644
success: http://buildbot.rust-lang.org/builders/auto-linux-64-x-android-t/builds/2644
success: http://buildbot.rust-lang.org/builders/auto-win-32-opt/builds/2309
success: http://buildbot.rust-lang.org/builders/auto-win-32-nopt-t/builds/2306
success: http://buildbot.rust-lang.org/builders/auto-win-64-opt/builds/1148
success: http://buildbot.rust-lang.org/builders/auto-win-64-nopt-t/builds/1142
ce4318a
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 = 9146a91