aboutsummaryrefslogtreecommitdiff
path: root/crates/syntax/src/validation
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2021-04-19 15:11:49 +0100
committerAleksey Kladov <[email protected]>2021-04-19 15:11:49 +0100
commit5f89a60f1a0feab1e2e0dd37e642877552675da4 (patch)
tree43fb164ef5ca02ccf8d9e8c3bedaa66d473a019c /crates/syntax/src/validation
parente4f7f1e1bd2ca3c1816abf87779ad8893b7bf990 (diff)
fix: false positive about inner attrs in docs
closes #8541
Diffstat (limited to 'crates/syntax/src/validation')
-rw-r--r--crates/syntax/src/validation/block.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/syntax/src/validation/block.rs b/crates/syntax/src/validation/block.rs
index ad9901468..40170014f 100644
--- a/crates/syntax/src/validation/block.rs
+++ b/crates/syntax/src/validation/block.rs
@@ -13,7 +13,7 @@ pub(crate) fn validate_block_expr(block: ast::BlockExpr, errors: &mut Vec<Syntax
13 _ => {} 13 _ => {}
14 } 14 }
15 } 15 }
16 errors.extend(block.attrs().map(|attr| { 16 errors.extend(block.attrs().filter(|attr| attr.kind().is_inner()).map(|attr| {
17 SyntaxError::new( 17 SyntaxError::new(
18 "A block in this position cannot accept inner attributes", 18 "A block in this position cannot accept inner attributes",
19 attr.syntax().text_range(), 19 attr.syntax().text_range(),