Skip to content

Commit 76f6a94

Browse files
committed
---
yaml --- r: 24243 b: refs/heads/master c: 463d5d5 h: refs/heads/master i: 24241: 0606db0 24239: f9fdc5a v: v3
1 parent 5b40603 commit 76f6a94

File tree

2 files changed

+6
-12
lines changed

2 files changed

+6
-12
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: fe62ff465cb572e58b23bf1ddb0ce51e11c21e49
2+
refs/heads/master: 463d5d5f0b6b649eaeb2b42dc71785d5ccb2666e
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: cd6f24f9d14ac90d167386a56e7a6ac1f0318195
55
refs/heads/try: ffbe0e0e00374358b789b0037bcb3a577cd218be

trunk/src/libsyntax/parse/parser.rs

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2227,17 +2227,11 @@ impl parser {
22272227
}
22282228

22292229
let lo = self.span.lo;
2230-
if self.eat_keyword(~"unsafe") {
2231-
self.expect(token::LBRACE);
2232-
let {inner, next} = maybe_parse_inner_attrs_and_next(self,
2233-
parse_attrs);
2234-
return (inner, self.parse_block_tail_(lo, unsafe_blk, next));
2235-
} else {
2236-
self.expect(token::LBRACE);
2237-
let {inner, next} = maybe_parse_inner_attrs_and_next(self,
2238-
parse_attrs);
2239-
return (inner, self.parse_block_tail_(lo, default_blk, next));
2240-
}
2230+
let us = self.eat_keyword(~"unsafe");
2231+
self.expect(token::LBRACE);
2232+
let {inner, next} = maybe_parse_inner_attrs_and_next(self,
2233+
parse_attrs);
2234+
return (inner, self.parse_block_tail_(lo, if us { unsafe_blk } else { default_blk }, next));
22412235
}
22422236

22432237
fn parse_block_no_value() -> blk {

0 commit comments

Comments
 (0)