Skip to content

Commit 6bf706f

Browse files
committed
---
yaml --- r: 22135 b: refs/heads/snap-stage3 c: 463d5d5 h: refs/heads/master i: 22133: fbe46ad 22131: ed627ea 22127: b4ed2e6 v: v3
1 parent eb8a872 commit 6bf706f

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,7 +1,7 @@
11
---
22
refs/heads/master: e430a699f2c60890d9b86069fd0c68a70ece7120
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4-
refs/heads/snap-stage3: fe62ff465cb572e58b23bf1ddb0ce51e11c21e49
4+
refs/heads/snap-stage3: 463d5d5f0b6b649eaeb2b42dc71785d5ccb2666e
55
refs/heads/try: ffbe0e0e00374358b789b0037bcb3a577cd218be
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b

branches/snap-stage3/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)