We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ee66f12 commit 310df0cCopy full SHA for 310df0c
src/expr.rs
@@ -2614,6 +2614,7 @@ pub(crate) mod parsing {
2614
#[cfg_attr(doc_cfg, doc(cfg(feature = "parsing")))]
2615
impl Parse for ExprBlock {
2616
fn parse(input: ParseStream) -> Result<Self> {
2617
+ let outer_attrs = input.call(Attribute::parse_outer)?;
2618
let label: Option<Label> = input.parse()?;
2619
2620
let content;
@@ -2622,7 +2623,7 @@ pub(crate) mod parsing {
2622
2623
let stmts = content.call(Block::parse_within)?;
2624
2625
Ok(ExprBlock {
- attrs: inner_attrs,
2626
+ attrs: private::attrs(outer_attrs, inner_attrs),
2627
label,
2628
block: Block { brace_token, stmts },
2629
})
0 commit comments