-
Notifications
You must be signed in to change notification settings - Fork 12.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
libsyntax: update helper to stringify TyU* and TyI* to take into acco…
…unt having a value. Fixes #13359.
- Loading branch information
Showing
6 changed files
with
59 additions
and
28 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
// 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. | ||
|
||
fn foo(_s: i16) { } | ||
|
||
fn bar(_s: u32) { } | ||
|
||
fn main() { | ||
foo(1*(1 as int)); | ||
//~^ ERROR: mismatched types: expected `i16` but found `int` (expected `i16` but found `int`) | ||
|
||
bar(1*(1 as uint)); | ||
//~^ ERROR: mismatched types: expected `u32` but found `uint` (expected `u32` but found `uint`) | ||
} |
888517d
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 Ryman@888517d
888517d
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 Ryman/rust/fix_uint_as_u = 888517d into auto
888517d
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.
Ryman/rust/fix_uint_as_u = 888517d merged ok, testing candidate = c56d5170
888517d
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-32-opt/builds/5210
exception: http://buildbot.rust-lang.org/builders/auto-mac-64-opt/builds/5207
exception: http://buildbot.rust-lang.org/builders/auto-mac-64-nopt-c/builds/4300
exception: http://buildbot.rust-lang.org/builders/auto-mac-64-nopt-t/builds/4313
exception: http://buildbot.rust-lang.org/builders/auto-linux-32-opt/builds/5309
exception: http://buildbot.rust-lang.org/builders/auto-linux-32-nopt-c/builds/4396
exception: http://buildbot.rust-lang.org/builders/auto-linux-32-nopt-t/builds/4404
exception: http://buildbot.rust-lang.org/builders/auto-linux-64-opt/builds/5311
exception: http://buildbot.rust-lang.org/builders/auto-linux-64-nopt-c/builds/4396
exception: http://buildbot.rust-lang.org/builders/auto-linux-64-nopt-t/builds/4401
exception: http://buildbot.rust-lang.org/builders/auto-linux-64-x-android-t/builds/2196
exception: http://buildbot.rust-lang.org/builders/auto-win-32-opt/builds/5307
exception: http://buildbot.rust-lang.org/builders/auto-win-32-nopt-t/builds/4416
888517d
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 Ryman@888517d
888517d
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 Ryman/rust/fix_uint_as_u = 888517d into auto
888517d
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.
Ryman/rust/fix_uint_as_u = 888517d merged ok, testing candidate = 465109d
888517d
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/5217
success: http://buildbot.rust-lang.org/builders/auto-mac-64-opt/builds/5214
success: http://buildbot.rust-lang.org/builders/auto-mac-64-nopt-c/builds/4307
success: http://buildbot.rust-lang.org/builders/auto-mac-64-nopt-t/builds/4320
success: http://buildbot.rust-lang.org/builders/auto-linux-32-opt/builds/5316
success: http://buildbot.rust-lang.org/builders/auto-linux-32-nopt-c/builds/4403
success: http://buildbot.rust-lang.org/builders/auto-linux-32-nopt-t/builds/4411
success: http://buildbot.rust-lang.org/builders/auto-linux-64-opt/builds/5318
success: http://buildbot.rust-lang.org/builders/auto-linux-64-nopt-c/builds/4403
success: http://buildbot.rust-lang.org/builders/auto-linux-64-nopt-t/builds/4408
success: http://buildbot.rust-lang.org/builders/auto-linux-64-x-android/builds/4473
success: http://buildbot.rust-lang.org/builders/auto-linux-64-x-android-t/builds/2203
success: http://buildbot.rust-lang.org/builders/auto-win-32-opt/builds/5314
success: http://buildbot.rust-lang.org/builders/auto-win-32-nopt-c/builds/4410
success: http://buildbot.rust-lang.org/builders/auto-win-32-nopt-t/builds/4423
888517d
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 = 465109d