parent
8e65dffc30
commit
7a0aee74bf
5 changed files with 24 additions and 24 deletions
|
|
@ -1735,11 +1735,11 @@ fn parse_block_tail(p: parser, lo: uint, s: ast::blk_check_mode) -> ast::blk {
|
|||
}
|
||||
|
||||
fn parse_ty_param(p: parser) -> ast::ty_param {
|
||||
let k = if eat_word(p, "pinned") || eat_word(p, "pin") {
|
||||
ast::kind_pinned
|
||||
} else if eat_word(p, "unique") || eat_word(p, "uniq") {
|
||||
ast::kind_unique
|
||||
} else { eat_word(p, "shar"); ast::kind_shared };
|
||||
let k = if eat_word(p, "pin") { ast::kind_pinned }
|
||||
else if eat_word(p, "uniq") { ast::kind_unique }
|
||||
else if eat_word(p, "shar") { ast::kind_shared }
|
||||
// FIXME distinguish implied shared from explicit
|
||||
else { ast::kind_shared };
|
||||
ret {ident: parse_ident(p), kind: k};
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue