Skip to content

Commit fc9161e

Browse files
committed
---
yaml --- r: 4371 b: refs/heads/master c: 0b7a94a h: refs/heads/master i: 4369: 7125b01 4367: 16f7309 v: v3
1 parent 90779bb commit fc9161e

File tree

3 files changed

+10
-3
lines changed

3 files changed

+10
-3
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
---
2-
refs/heads/master: 843767a841d49ce3c5005b9fd2705217af22d5d5
2+
refs/heads/master: 0b7a94a94c15546016a2c85329bfa16f5a39628a

trunk/src/comp/syntax/print/pprust.rs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1195,10 +1195,19 @@ fn print_alias(s: &ps, m: ast::mode) {
11951195
}
11961196
}
11971197

1198+
fn print_kind(s: &ps, kind: ast::kind) {
1199+
alt kind {
1200+
ast::kind_unique. { word(s.s, "~"); }
1201+
ast::kind_shared. { word(s.s, "@"); }
1202+
_ { /* fallthrough */ }
1203+
}
1204+
}
1205+
11981206
fn print_type_params(s: &ps, params: &ast::ty_param[]) {
11991207
if ivec::len(params) > 0u {
12001208
word(s.s, "[");
12011209
fn printParam(s: &ps, param: &ast::ty_param) {
1210+
print_kind(s, param.kind);
12021211
word(s.s, param.ident);
12031212
}
12041213
commasep(s, inconsistent, params, printParam);

trunk/src/test/run-pass/swap-2.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
// xfail-pretty
2-
31
fn swap[@T](v: &vec[mutable T], i: int, j: int) { v.(i) <-> v.(j); }
42

53
fn main() {

0 commit comments

Comments
 (0)