Merge pull request #3607 from gutworth/incoming
utterly trivial refactoring
This commit is contained in:
commit
463d5d5f0b
1 changed files with 5 additions and 11 deletions
|
@ -2227,17 +2227,11 @@ impl parser {
|
||||||
}
|
}
|
||||||
|
|
||||||
let lo = self.span.lo;
|
let lo = self.span.lo;
|
||||||
if self.eat_keyword(~"unsafe") {
|
let us = self.eat_keyword(~"unsafe");
|
||||||
self.expect(token::LBRACE);
|
self.expect(token::LBRACE);
|
||||||
let {inner, next} = maybe_parse_inner_attrs_and_next(self,
|
let {inner, next} = maybe_parse_inner_attrs_and_next(self,
|
||||||
parse_attrs);
|
parse_attrs);
|
||||||
return (inner, self.parse_block_tail_(lo, unsafe_blk, next));
|
return (inner, self.parse_block_tail_(lo, if us { unsafe_blk } else { default_blk }, next));
|
||||||
} else {
|
|
||||||
self.expect(token::LBRACE);
|
|
||||||
let {inner, next} = maybe_parse_inner_attrs_and_next(self,
|
|
||||||
parse_attrs);
|
|
||||||
return (inner, self.parse_block_tail_(lo, default_blk, next));
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
fn parse_block_no_value() -> blk {
|
fn parse_block_no_value() -> blk {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue