Skip to content

Commit 96378cc

Browse files
committed
---
yaml --- r: 97663 b: refs/heads/snap-stage3 c: b8c60f9 h: refs/heads/master i: 97661: 46aacd0 97659: 72d1e83 97655: 4295a56 97647: 17799fb 97631: 53b16b8 97599: 4e23e30 97535: 0b96d76 v: v3
1 parent dbd3e71 commit 96378cc

File tree

5 files changed

+25
-6
lines changed

5 files changed

+25
-6
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
refs/heads/master: 0da105a8b7b6b1e0568e8ff20f6ff4b13cc7ecc2
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4-
refs/heads/snap-stage3: c74c854adc83eb311aef722e64c0af81ea09f1a1
4+
refs/heads/snap-stage3: b8c60f906b897f413997f17f0376402061993c8d
55
refs/heads/try: c274a6888410ce3e357e014568b43310ed787d36
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b

branches/snap-stage3/src/librustc/middle/ty.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -810,23 +810,23 @@ impl Vid for TyVid {
810810
}
811811

812812
impl ToStr for TyVid {
813-
fn to_str(&self) -> ~str { format!("<V{}>", self.to_uint()) }
813+
fn to_str(&self) -> ~str { format!("<generic \\#{}>", self.to_uint()) }
814814
}
815815

816816
impl Vid for IntVid {
817817
fn to_uint(&self) -> uint { let IntVid(v) = *self; v }
818818
}
819819

820820
impl ToStr for IntVid {
821-
fn to_str(&self) -> ~str { format!("<VI{}>", self.to_uint()) }
821+
fn to_str(&self) -> ~str { format!("<generic integer \\#{}>", self.to_uint()) }
822822
}
823823

824824
impl Vid for FloatVid {
825825
fn to_uint(&self) -> uint { let FloatVid(v) = *self; v }
826826
}
827827

828828
impl ToStr for FloatVid {
829-
fn to_str(&self) -> ~str { format!("<VF{}>", self.to_uint()) }
829+
fn to_str(&self) -> ~str { format!("<generic float \\#{}>", self.to_uint()) }
830830
}
831831

832832
impl Vid for RegionVid {

branches/snap-stage3/src/test/compile-fail/issue-3680.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@
1010

1111
fn main() {
1212
match None {
13-
Err(_) => () //~ ERROR mismatched types: expected `std::option::Option<<V1>>` but found `std::result::Result<<V2>,<V3>>`
13+
Err(_) => () //~ ERROR mismatched types: expected `std::option::Option<<generic #1>>` but found `std::result::Result<<generic #2>,<generic #3>>`
1414
}
1515
}

branches/snap-stage3/src/test/compile-fail/issue-4968.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,5 @@
1212

1313
static A: (int,int) = (4,2);
1414
fn main() {
15-
match 42 { A => () } //~ ERROR mismatched types: expected `<VI0>` but found `(int,int)` (expected integral variable but found tuple)
15+
match 42 { A => () } //~ ERROR mismatched types: expected `<generic integer #0>` but found `(int,int)` (expected integral variable but found tuple)
1616
}
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
2+
// file at the top-level directory of this distribution and at
3+
// http://rust-lang.org/COPYRIGHT.
4+
//
5+
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
6+
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
7+
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
8+
// option. This file may not be copied, modified, or distributed
9+
// except according to those terms.
10+
11+
struct Foo<T,U>(T);
12+
13+
fn main() {
14+
match Foo(1.1) {
15+
1 => {}
16+
//~^ ERROR expected `Foo<<generic float #0>,<generic #2>>` but found `<generic integer #0>`
17+
}
18+
19+
}

0 commit comments

Comments
 (0)