Skip to content

Commit ce3744c

Browse files
committed
---
yaml --- r: 41909 b: refs/heads/master c: 778aec9 h: refs/heads/master i: 41907: 235acc2 v: v3
1 parent 22f8cdd commit ce3744c

File tree

4 files changed

+19
-1
lines changed

4 files changed

+19
-1
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: 1871f3a70baf203e31c7e72b13715924bebd3ad7
2+
refs/heads/master: 778aec998b0a4a34632b22abd8c1cfa599fe78f0
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 2f46b763da2c098913884f101b6d71d69af41b49
55
refs/heads/try: 3d5418789064fdb463e872a4e651af1c628a3650

trunk/src/libsyntax/parse/parser.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2531,6 +2531,10 @@ impl Parser {
25312531
} else {
25322532
break;
25332533
}
2534+
2535+
if self.eat(token::BINOP(token::PLUS)) {
2536+
// Should be `break;` but that isn't backwards compatible.
2537+
}
25342538
}
25352539
}
25362540
return @move bounds;

trunk/src/libsyntax/print/pprust.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1791,8 +1791,15 @@ fn print_arg_mode(s: ps, m: ast::mode) {
17911791
fn print_bounds(s: ps, bounds: @~[ast::ty_param_bound]) {
17921792
if bounds.is_not_empty() {
17931793
word(s.s, ~":");
1794+
let mut first = true;
17941795
for vec::each(*bounds) |&bound| {
17951796
nbsp(s);
1797+
if first {
1798+
first = false;
1799+
} else {
1800+
word_space(s, ~"+");
1801+
}
1802+
17961803
match bound {
17971804
TraitTyParamBound(ty) => print_type(s, ty),
17981805
RegionTyParamBound => word(s.s, ~"&static"),
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
fn f<T:Eq + Ord>(_: T) {
2+
}
3+
4+
fn main() {
5+
f(3);
6+
}
7+

0 commit comments

Comments
 (0)