Remove 'unchecked' keyword

This commit is contained in:
Brian Anderson 2012-09-18 11:17:49 -07:00
parent 2cdb23bbc0
commit d0d8b7fe64
2 changed files with 2 additions and 9 deletions

View file

@ -926,8 +926,6 @@ impl parser {
_ => { /* fallthrough */ }
}
return pexpr(self.parse_fn_expr(proto));
} else if self.eat_keyword(~"unchecked") {
return pexpr(self.parse_block_expr(lo, unchecked_blk));
} else if self.eat_keyword(~"unsafe") {
return pexpr(self.parse_block_expr(lo, unsafe_blk));
} else if self.token == token::LBRACKET {
@ -2210,12 +2208,7 @@ impl parser {
}
let lo = self.span.lo;
if self.eat_keyword(~"unchecked") {
self.expect(token::LBRACE);
let {inner, next} = maybe_parse_inner_attrs_and_next(self,
parse_attrs);
return (inner, self.parse_block_tail_(lo, unchecked_blk, next));
} else if self.eat_keyword(~"unsafe") {
if self.eat_keyword(~"unsafe") {
self.expect(token::LBRACE);
let {inner, next} = maybe_parse_inner_attrs_and_next(self,
parse_attrs);

View file

@ -439,7 +439,7 @@ fn strict_keyword_table() -> HashMap<~str, ()> {
~"ref", ~"return",
~"struct",
~"true", ~"trait", ~"type",
~"unchecked", ~"use",
~"use",
~"while"
];
for keys.each |word| {