-
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.
Add an identifier to TypeParameterDefs and use it to pretty print typ…
…e parameters
- Loading branch information
1 parent
e388a80
commit 4412df2
Showing
7 changed files
with
26 additions
and
11 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
// Test that we print out the names of type parameters correctly in | ||
// our error messages. | ||
|
||
fn foo<Foo, Bar>(x: Foo) -> Bar { x } //~ ERROR expected `Bar` but found `Foo` | ||
|
||
fn main() {} |
4412df2
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 cmr
at nikomatsakis@4412df2
4412df2
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 nikomatsakis/rust/issue-2951-type-parameter-names = 4412df2 into auto
4412df2
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.
nikomatsakis/rust/issue-2951-type-parameter-names = 4412df2 merged ok, testing candidate = e7040e8
4412df2
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/344
success: http://buildbot.rust-lang.org/builders/auto-mac-64-opt/builds/346
success: http://buildbot.rust-lang.org/builders/auto-mac-64-nopt/builds/349
success: http://buildbot.rust-lang.org/builders/auto-mac-64-opt-vg/builds/342
success: http://buildbot.rust-lang.org/builders/auto-mac-all-opt/builds/346
success: http://buildbot.rust-lang.org/builders/auto-linux-32-opt/builds/365
success: http://buildbot.rust-lang.org/builders/auto-linux-32-nopt/builds/368
success: http://buildbot.rust-lang.org/builders/auto-linux-64-opt/builds/365
success: http://buildbot.rust-lang.org/builders/auto-linux-64-nopt/builds/368
success: http://buildbot.rust-lang.org/builders/auto-linux-64-opt-vg/builds/371
success: http://buildbot.rust-lang.org/builders/auto-linux-all-opt/builds/364
success: http://buildbot.rust-lang.org/builders/auto-win-32-opt/builds/348
success: http://buildbot.rust-lang.org/builders/auto-win-32-nopt/builds/364
success: http://buildbot.rust-lang.org/builders/auto-bsd-64-opt/builds/143
4412df2
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 = e7040e8