File tree Expand file tree Collapse file tree 2 files changed +2
-9
lines changed Expand file tree Collapse file tree 2 files changed +2
-9
lines changed Original file line number Diff line number Diff line change @@ -926,8 +926,6 @@ impl parser {
926
926
_ => { /* fallthrough */ }
927
927
}
928
928
return pexpr ( self . parse_fn_expr ( proto) ) ;
929
- } else if self . eat_keyword ( ~"unchecked") {
930
- return pexpr ( self . parse_block_expr ( lo, unchecked_blk) ) ;
931
929
} else if self . eat_keyword ( ~"unsafe ") {
932
930
return pexpr ( self . parse_block_expr ( lo, unsafe_blk) ) ;
933
931
} else if self . token == token:: LBRACKET {
@@ -2210,12 +2208,7 @@ impl parser {
2210
2208
}
2211
2209
2212
2210
let lo = self . span . lo ;
2213
- if self . eat_keyword ( ~"unchecked") {
2214
- self . expect ( token:: LBRACE ) ;
2215
- let { inner, next} = maybe_parse_inner_attrs_and_next ( self ,
2216
- parse_attrs) ;
2217
- return ( inner, self . parse_block_tail_ ( lo, unchecked_blk, next) ) ;
2218
- } else if self . eat_keyword ( ~"unsafe ") {
2211
+ if self . eat_keyword ( ~"unsafe ") {
2219
2212
self . expect ( token:: LBRACE ) ;
2220
2213
let { inner, next} = maybe_parse_inner_attrs_and_next ( self ,
2221
2214
parse_attrs) ;
Original file line number Diff line number Diff line change @@ -439,7 +439,7 @@ fn strict_keyword_table() -> HashMap<~str, ()> {
439
439
~"ref ", ~"return ",
440
440
~" struct",
441
441
~"true", ~"trait ", ~"type ",
442
- ~"unchecked" , ~" use ",
442
+ ~"use ",
443
443
~"while "
444
444
];
445
445
for keys.each |word| {
You can’t perform that action at this time.
0 commit comments