aboutsummaryrefslogtreecommitdiff
path: root/crates/hir_def/src/nameres
diff options
context:
space:
mode:
authorJonas Schievink <[email protected]>2020-12-18 19:25:41 +0000
committerJonas Schievink <[email protected]>2020-12-18 19:25:41 +0000
commitaab9cc9cfb64aea659f2f9b588e8a4f392e2c4e1 (patch)
tree1fe215b8433ea21ea713567dfc7a3b2210a55541 /crates/hir_def/src/nameres
parent382ee2fa037a3ec293d332dd70f04975396b5513 (diff)
Hit a mark
Diffstat (limited to 'crates/hir_def/src/nameres')
-rw-r--r--crates/hir_def/src/nameres/tests/diagnostics.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/crates/hir_def/src/nameres/tests/diagnostics.rs b/crates/hir_def/src/nameres/tests/diagnostics.rs
index 4093f8bd0..58d69d3c6 100644
--- a/crates/hir_def/src/nameres/tests/diagnostics.rs
+++ b/crates/hir_def/src/nameres/tests/diagnostics.rs
@@ -1,4 +1,5 @@
1use base_db::fixture::WithFixture; 1use base_db::fixture::WithFixture;
2use test_utils::mark;
2 3
3use crate::test_db::TestDB; 4use crate::test_db::TestDB;
4 5
@@ -123,6 +124,7 @@ fn inactive_item() {
123/// Tests that `cfg` attributes behind `cfg_attr` is handled properly. 124/// Tests that `cfg` attributes behind `cfg_attr` is handled properly.
124#[test] 125#[test]
125fn inactive_via_cfg_attr() { 126fn inactive_via_cfg_attr() {
127 mark::check!(cfg_attr_active);
126 check_diagnostics( 128 check_diagnostics(
127 r#" 129 r#"
128 //- /lib.rs 130 //- /lib.rs