Skip to content

Commit e3dc031

Browse files
committed
---
yaml --- r: 12549 b: refs/heads/master c: 3d6c791 h: refs/heads/master i: 12547: 920bb89 v: v3
1 parent afef476 commit e3dc031

File tree

10 files changed

+23
-18
lines changed

10 files changed

+23
-18
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: 3c995fb8f3676a313f5ac883e175cc5fe354e640
2+
refs/heads/master: 3d6c79109e869de58d6545f683b3e796237039fb
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 4a81779abd786ff22d71434c6d9a5917ea4cdfff
55
refs/heads/try: 2898dcc5d97da9427ac367542382b6239d9c0bbf

trunk/src/librustsyntax/parse/parser.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2249,7 +2249,12 @@ fn parse_item_type(p: parser, attrs: [ast::attribute]) -> @ast::item {
22492249
}
22502250

22512251
fn parse_region_param(p: parser) -> ast::region_param {
2252-
if eat(p, token::BINOP(token::AND)) {ast::rp_self} else {ast::rp_none}
2252+
if eat(p, token::BINOP(token::SLASH)) {
2253+
expect(p, token::BINOP(token::AND));
2254+
ast::rp_self
2255+
} else {
2256+
ast::rp_none
2257+
}
22532258
}
22542259

22552260
fn parse_item_enum(p: parser, attrs: [ast::attribute]) -> @ast::item {

trunk/src/librustsyntax/print/pprust.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1407,7 +1407,7 @@ fn print_bounds(s: ps, bounds: @[ast::ty_param_bound]) {
14071407

14081408
fn print_region_param(s: ps, rp: ast::region_param) {
14091409
alt rp {
1410-
ast::rp_self { word(s.s, "&") }
1410+
ast::rp_self { word(s.s, "/&") }
14111411
ast::rp_none { }
14121412
}
14131413
}

trunk/src/test/bench/shootout-binarytrees.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ use std;
22
import std::arena;
33
import std::arena::arena;
44

5-
enum tree& { nil, node(&tree, &tree, int), }
5+
enum tree/& { nil, node(&tree, &tree, int), }
66

77
fn item_check(t: &tree) -> int {
88
alt *t {

trunk/src/test/compile-fail/regions-creating-enums.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
enum ast& {
1+
enum ast/& {
22
num(uint),
33
add(&ast, &ast)
44
}

trunk/src/test/compile-fail/regions-in-enums.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,15 @@ enum no2 {
1010
x2(&foo.uint) //! ERROR named regions other than `self` are not allowed as part of a type declaration
1111
}
1212

13-
enum yes0& {
13+
enum yes0/& {
1414
x3(&uint)
1515
}
1616

17-
enum yes1& {
17+
enum yes1/& {
1818
x4(&self.uint)
1919
}
2020

21-
enum yes2& {
21+
enum yes2/& {
2222
x5(&foo.uint) //! ERROR named regions other than `self` are not allowed as part of a type declaration
2323
}
2424

trunk/src/test/compile-fail/regions-in-rsrcs.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@ resource no1(x: &self.uint) { //! ERROR to use region types here, the containing
77
resource no2(x: &foo.uint) { //! ERROR named regions other than `self` are not allowed as part of a type declaration
88
}
99

10-
resource yes0&(x: &uint) {
10+
resource yes0/&(x: &uint) {
1111
}
1212

13-
resource yes1&(x: &self.uint) {
13+
resource yes1/&(x: &self.uint) {
1414
}
1515

16-
resource yes2&(x: &foo.uint) { //! ERROR named regions other than `self` are not allowed as part of a type declaration
16+
resource yes2/&(x: &foo.uint) { //! ERROR named regions other than `self` are not allowed as part of a type declaration
1717
}
1818

1919
fn main() {}

trunk/src/test/compile-fail/regions-in-type-items.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,15 @@ type item_ty_no2 = {
1010
x: &foo.uint //! ERROR named regions other than `self` are not allowed as part of a type declaration
1111
};
1212

13-
type item_ty_yes0& = {
13+
type item_ty_yes0/& = {
1414
x: &uint
1515
};
1616

17-
type item_ty_yes1& = {
17+
type item_ty_yes1/& = {
1818
x: &self.uint
1919
};
2020

21-
type item_ty_yes2& = {
21+
type item_ty_yes2/& = {
2222
x: &foo.uint //! ERROR named regions other than `self` are not allowed as part of a type declaration
2323
};
2424

trunk/src/test/run-pass/regions-mock-trans-impls.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@ import libc, sys, unsafe;
22

33
enum arena = ();
44

5-
type bcx& = {
5+
type bcx/& = {
66
fcx: &fcx
77
};
88

9-
type fcx& = {
9+
type fcx/& = {
1010
arena: &arena,
1111
ccx: &ccx
1212
};

trunk/src/test/run-pass/regions-mock-trans.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@ import libc, sys, unsafe;
22

33
enum arena = ();
44

5-
type bcx& = {
5+
type bcx/& = {
66
fcx: &fcx
77
};
88

9-
type fcx& = {
9+
type fcx/& = {
1010
arena: &arena,
1111
ccx: &ccx
1212
};

0 commit comments

Comments
 (0)