Skip to content

Commit 93f9e0c

Browse files
committed
---
yaml --- r: 10601 b: refs/heads/snap-stage3 c: c50eea1 h: refs/heads/master i: 10599: 56b6015 v: v3
1 parent b5dbbea commit 93f9e0c

File tree

5 files changed

+47
-1
lines changed

5 files changed

+47
-1
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
refs/heads/master: 2898dcc5d97da9427ac367542382b6239d9c0bbf
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4-
refs/heads/snap-stage3: 8040fd86bf3cf27b842b1076f3cfab7439938785
4+
refs/heads/snap-stage3: c50eea17d4bbb3aa26ea08ef107a11048c67047d
55
refs/heads/try: 2898dcc5d97da9427ac367542382b6239d9c0bbf
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#[link(name = "a", vers = "0.1")];
2+
#[crate_type = "lib"];
3+
4+
iface to_str {
5+
fn to_str() -> str;
6+
}
7+
8+
impl of to_str for str {
9+
fn to_str() -> str { self }
10+
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#[link(name = "b", vers = "0.1")];
2+
#[crate_type = "lib"];
3+
4+
use a;
5+
import a::to_str;
6+
7+
impl of to_str for int {
8+
fn to_str() -> str { #fmt("%?", self) }
9+
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#[link(name = "c", vers = "0.1")];
2+
#[crate_type = "lib"];
3+
4+
use a;
5+
6+
import a::to_str;
7+
8+
impl of to_str for bool {
9+
fn to_str() -> str { #fmt("%b", self) }
10+
}
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
// xfail-test
2+
// aux-build:issue_2242_a.rs
3+
// aux-build:issue_2242_b.rs
4+
// aux-build:issue_2242_c.rs
5+
6+
use a;
7+
use b;
8+
use c;
9+
10+
import b::to_str;
11+
import c::to_str;
12+
13+
fn main() {
14+
io::println("foo".to_str());
15+
io::println(1.to_str());
16+
io::println(true.to_str());
17+
}

0 commit comments

Comments
 (0)