Skip to content

Commit b5973ee

Browse files
committed
---
yaml --- r: 50363 b: refs/heads/auto c: e6f2d7a h: refs/heads/master i: 50361: 2a4c321 50359: 3a714f0 v: v3
1 parent fb4bcdf commit b5973ee

File tree

3 files changed

+4
-8
lines changed

3 files changed

+4
-8
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,5 @@ refs/heads/try3: 9387340aab40a73e8424c48fd42f0c521a4875c0
1414
refs/tags/release-0.3.1: 495bae036dfe5ec6ceafd3312b4dca48741e845b
1515
refs/tags/release-0.4: e828ea2080499553b97dfe33b3f4d472b4562ad7
1616
refs/tags/release-0.5: 7e3bcfbf21278251ee936ad53e92e9b719702d73
17-
refs/heads/auto: a985bc52cd3e65ee6693327eb728d34f477c0a12
17+
refs/heads/auto: e6f2d7a48cbb5df93ea5616467591e6e5f6697a3
1818
refs/heads/servo: af82457af293e2a842ba6b7759b70288da276167

branches/auto/src/libcore/rt/context.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ fn initialize_call_frame(regs: &mut Registers, fptr: *c_void, arg: *c_void, sp:
160160
type Registers = [uint, ..32];
161161

162162
#[cfg(target_arch = "arm")]
163-
fn new_regs() -> ~Registers { ~[0, .. 32] }
163+
fn new_regs() -> ~Registers { ~([0, .. 32]) }
164164

165165
#[cfg(target_arch = "arm")]
166166
fn initialize_call_frame(regs: &mut Registers, fptr: *c_void, arg: *c_void, sp: *mut uint) {
@@ -178,7 +178,7 @@ fn initialize_call_frame(regs: &mut Registers, fptr: *c_void, arg: *c_void, sp:
178178
type Registers = [uint, ..32];
179179

180180
#[cfg(target_arch = "mips")]
181-
fn new_regs() -> ~Registers { ~[0, .. 32] }
181+
fn new_regs() -> ~Registers { ~([0, .. 32]) }
182182

183183
#[cfg(target_arch = "mips")]
184184
fn initialize_call_frame(regs: &mut Registers, fptr: *c_void, arg: *c_void, sp: *mut uint) {

branches/auto/src/libsyntax/parse/parser.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3107,15 +3107,11 @@ pub impl Parser {
31073107
// XXX: clownshoes
31083108
let ident = special_idents::clownshoes_extensions;
31093109

3110-
// Special case: if the next identifier that follows is '(', don't
3111-
// allow this to be parsed as a trait.
3112-
let could_be_trait = *self.token != token::LPAREN;
3113-
31143110
// Parse the trait.
31153111
let mut ty = self.parse_ty(false);
31163112

31173113
// Parse traits, if necessary.
3118-
let opt_trait = if could_be_trait && self.eat_keyword(&~"for") {
3114+
let opt_trait = if self.eat_keyword(&~"for") {
31193115
// New-style trait. Reinterpret the type as a trait.
31203116
let opt_trait_ref = match ty.node {
31213117
ty_path(path, node_id) => {

0 commit comments

Comments
 (0)