Add asm label support to AST and HIR
This commit is contained in:
parent
8f359beca4
commit
93fa8579c6
25 changed files with 143 additions and 21 deletions
|
@ -434,7 +434,7 @@ impl<'a> Parser<'a> {
|
|||
}
|
||||
|
||||
/// Parses a block. No inner attributes are allowed.
|
||||
pub(super) fn parse_block(&mut self) -> PResult<'a, P<Block>> {
|
||||
pub fn parse_block(&mut self) -> PResult<'a, P<Block>> {
|
||||
let (attrs, block) = self.parse_inner_attrs_and_block()?;
|
||||
if let [.., last] = &*attrs {
|
||||
self.error_on_forbidden_inner_attr(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue