Skip to content

Commit 94a31e1

Browse files
committed
---
yaml --- r: 11259 b: refs/heads/master c: a7641e9 h: refs/heads/master i: 11257: 07ff1d8 11255: 24a28aa v: v3
1 parent 0d4cc45 commit 94a31e1

File tree

6 files changed

+27
-4
lines changed

6 files changed

+27
-4
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: bcbe36b33b7d310d64abeb76231cd3bd8b5cd584
2+
refs/heads/master: a7641e99e8e6830e4242cfe441a867eb6e955694
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 4a81779abd786ff22d71434c6d9a5917ea4cdfff
55
refs/heads/try: 2898dcc5d97da9427ac367542382b6239d9c0bbf

trunk/src/comp/middle/ast_map.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ fn path_to_str_with_sep(p: path, sep: str) -> str {
1717
}
1818

1919
fn path_to_str(p: path) -> str {
20-
"::" + path_to_str_with_sep(p, "::")
20+
path_to_str_with_sep(p, "::")
2121
}
2222

2323
enum ast_node {

trunk/src/test/compile-fail/fully-qualified-type-name1.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@
33
fn main() {
44
let x: option<uint>;
55
x = 5;
6-
//!^ ERROR mismatched types: expected `::core::option::t<uint>`
6+
//!^ ERROR mismatched types: expected `core::option::t<uint>`
77
}

trunk/src/test/compile-fail/fully-qualified-type-name2.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ mod y {
1010

1111
fn bar(x: x::foo) -> y::foo {
1212
ret x;
13-
//!^ ERROR mismatched types: expected `::y::foo` but found `::x::foo`
13+
//!^ ERROR mismatched types: expected `y::foo` but found `x::foo`
1414
}
1515

1616
fn main() {
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
// Test that we use fully-qualified type names in error messages.
2+
3+
type T1 = uint;
4+
type T2 = int;
5+
6+
fn bar(x: T1) -> T2 {
7+
ret x;
8+
//!^ ERROR mismatched types: expected `T2` but found `T1`
9+
}
10+
11+
fn main() {
12+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
// Test that we use fully-qualified type names in error messages.
2+
3+
import core::task::task;
4+
5+
fn bar(x: uint) -> task {
6+
ret x;
7+
//!^ ERROR mismatched types: expected `core::task::task`
8+
}
9+
10+
fn main() {
11+
}

0 commit comments

Comments
 (0)