aboutsummaryrefslogtreecommitdiff
path: root/crates/hir_def
diff options
context:
space:
mode:
authorJonas Schievink <[email protected]>2021-03-13 17:18:05 +0000
committerJonas Schievink <[email protected]>2021-03-13 17:18:05 +0000
commit72785fb94d0a00afec5bfbb62a12ece8ffcfae7d (patch)
treef8d032fcc20c9629abc4f2fbf72e892f210e2ca6 /crates/hir_def
parent6ab405f2e9861c34ab9e1ad86af6604523745cef (diff)
Extend cfg_attr test
Diffstat (limited to 'crates/hir_def')
-rw-r--r--crates/hir_def/src/nameres/tests/diagnostics.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/crates/hir_def/src/nameres/tests/diagnostics.rs b/crates/hir_def/src/nameres/tests/diagnostics.rs
index d5ef8ceb5..1b8e885b0 100644
--- a/crates/hir_def/src/nameres/tests/diagnostics.rs
+++ b/crates/hir_def/src/nameres/tests/diagnostics.rs
@@ -149,6 +149,9 @@ fn inactive_via_cfg_attr() {
149 #[cfg_attr(not(never), cfg(not(no)))] fn f() {} 149 #[cfg_attr(not(never), cfg(not(no)))] fn f() {}
150 150
151 #[cfg_attr(never, cfg(no))] fn g() {} 151 #[cfg_attr(never, cfg(no))] fn g() {}
152
153 #[cfg_attr(not(never), inline, cfg(no))] fn h() {}
154 //^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ code is inactive due to #[cfg] directives: no is disabled
152 "#, 155 "#,
153 ); 156 );
154} 157}