Skip to content

Commit 48907c7

Browse files
committed
---
yaml --- r: 52457 b: refs/heads/dist-snap c: 778aec9 h: refs/heads/master i: 52455: 892228a v: v3
1 parent e762475 commit 48907c7

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
@@ -7,7 +7,7 @@ refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: 147ecfdd8221e4a4d4e090486829a06da1e0ca3c
99
refs/heads/incoming: 44d4d6de762f3f9aae1fedcf454c66b79b3ad58d
10-
refs/heads/dist-snap: 1871f3a70baf203e31c7e72b13715924bebd3ad7
10+
refs/heads/dist-snap: 778aec998b0a4a34632b22abd8c1cfa599fe78f0
1111
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1212
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503
1313
refs/heads/try3: 9387340aab40a73e8424c48fd42f0c521a4875c0

branches/dist-snap/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;

branches/dist-snap/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)