Skip to content

Commit e1ad67f

Browse files
ericktbrson
authored andcommitted
---
yaml --- r: 4501 b: refs/heads/master c: 00ccd6b h: refs/heads/master i: 4499: 8575171 v: v3
1 parent 491735a commit e1ad67f

File tree

3 files changed

+17
-36
lines changed

3 files changed

+17
-36
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: 491ed7f12c2c9adf186599ac5294cb24825ad36b
2+
refs/heads/master: 00ccd6ba4272c487c62b06544219ee150307482a

trunk/src/comp/middle/trans.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6886,7 +6886,7 @@ fn vtbl_mthd_lteq(a: &vtbl_mthd, b: &vtbl_mthd) -> bool {
68866886
// Used by create_vtbl to filter a list of methods to remove the ones that we
68876887
// don't need forwarding slots for.
68886888
fn filtering_fn(cx: @local_ctxt, m: &vtbl_mthd,
6889-
addtl_meths: (@ast::method)[]) ->
6889+
addtl_meths: [@ast::method]) ->
68906890
option::t[vtbl_mthd] {
68916891

68926892
// Since m is a fwding_mthd, and we're checking to see if it's in

trunk/src/comp/syntax/parse/parser.rs

Lines changed: 15 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -429,42 +429,23 @@ fn parse_ty_postfix(orig_t: ast::ty_, p: &parser) -> @ast::ty {
429429
// This is explicit type parameter instantiation.
430430
p.bump();
431431

432-
let mut;
433-
if eat_word(p, "mutable") {
434-
if p.peek() == token::QUES {
435-
p.bump();
436-
mut = ast::maybe_mut;
437-
} else { mut = ast::mut; }
438-
} else { mut = ast::imm; }
439-
440-
if mut == ast::imm && p.peek() != token::RBRACKET {
441-
// This is explicit type parameter instantiation.
442-
let seq =
443-
parse_seq_to_end(token::RBRACKET, some(token::COMMA),
444-
parse_ty, p);
445-
432+
let seq =
433+
parse_seq_to_end(token::RBRACKET, some(token::COMMA),
434+
parse_ty, p);
446435

447-
alt orig_t {
448-
ast::ty_path(pth, ann) {
449-
let hi = p.get_hi_pos();
450-
ret @spanned(lo, hi,
451-
ast::ty_path(spanned(lo, hi,
452-
{global: pth.node.global,
453-
idents: pth.node.idents,
454-
types: seq}), ann));
455-
}
456-
_ {
457-
p.fatal("type parameter instantiation only allowed for " +
458-
"paths");
459-
}
460-
}
436+
alt orig_t {
437+
ast::ty_path(pth, ann) {
438+
let hi = p.get_hi_pos();
439+
ret @spanned(lo, hi,
440+
ast::ty_path(spanned(lo, hi,
441+
{global: pth.node.global,
442+
idents: pth.node.idents,
443+
types: seq}), ann));
444+
}
445+
_ {
446+
p.fatal("type parameter instantiation only allowed for paths");
447+
}
461448
}
462-
463-
expect(p, token::RBRACKET);
464-
let hi = p.get_hi_pos();
465-
// FIXME: spans are probably wrong
466-
let t = ast::ty_ivec({ty: @spanned(lo, hi, orig_t), mut: mut});
467-
ret parse_ty_postfix(t, p);
468449
}
469450
ret @spanned(lo, p.get_lo_pos(), orig_t);
470451
}

0 commit comments

Comments
 (0)