Move a comment to a better spot.
This commit is contained in:
parent
2eb2ef1684
commit
9d77d17f71
@ -116,13 +116,12 @@ impl<'a> Parser<'a> {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else if let Some(item) = self.parse_item_common(
|
} else if let Some(item) = self.parse_item_common(
|
||||||
attrs.clone(),
|
attrs.clone(), // FIXME: unwanted clone of attrs
|
||||||
false,
|
false,
|
||||||
true,
|
true,
|
||||||
FnParseMode { req_name: |_| true, req_body: true },
|
FnParseMode { req_name: |_| true, req_body: true },
|
||||||
force_collect,
|
force_collect,
|
||||||
)? {
|
)? {
|
||||||
// FIXME: Bad copy of attrs
|
|
||||||
self.mk_stmt(lo.to(item.span), StmtKind::Item(P(item)))
|
self.mk_stmt(lo.to(item.span), StmtKind::Item(P(item)))
|
||||||
} else if self.eat(&token::Semi) {
|
} else if self.eat(&token::Semi) {
|
||||||
// Do not attempt to parse an expression if we're done here.
|
// Do not attempt to parse an expression if we're done here.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user