From 459241f272748ff2e57b2c7e84f5a04f78d67edb Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Wed, 24 Jul 2019 12:38:21 +0300 Subject: move syntax tests to unit tests --- .../tests/data/parser/ok/0045_block_inner_attrs.rs | 20 -------------------- 1 file changed, 20 deletions(-) delete mode 100644 crates/ra_syntax/tests/data/parser/ok/0045_block_inner_attrs.rs (limited to 'crates/ra_syntax/tests/data/parser/ok/0045_block_inner_attrs.rs') diff --git a/crates/ra_syntax/tests/data/parser/ok/0045_block_inner_attrs.rs b/crates/ra_syntax/tests/data/parser/ok/0045_block_inner_attrs.rs deleted file mode 100644 index 88df8138e..000000000 --- a/crates/ra_syntax/tests/data/parser/ok/0045_block_inner_attrs.rs +++ /dev/null @@ -1,20 +0,0 @@ -fn block() { - #![doc("Inner attributes allowed here")] - //! As are ModuleDoc style comments - { - #![doc("Inner attributes are allowed in blocks used as statements")] - #![doc("Being validated is not affected by duplcates")] - //! As are ModuleDoc style comments - }; - { - #![doc("Inner attributes are allowed in blocks when they are the last statement of another block")] - //! As are ModuleDoc style comments - } -} - -// https://github.com/rust-analyzer/rust-analyzer/issues/689 -impl Whatever { - fn salsa_event(&self, event_fn: impl Fn() -> Event) { - #![allow(unused_variables)] // this is `inner_attr` of the block - } -} -- cgit v1.2.3