From 74cb3e96a5279b4df6409ca4c20aac00d2ba5bfd Mon Sep 17 00:00:00 2001 From: Jonas Schievink Date: Thu, 26 Nov 2020 17:28:00 +0100 Subject: Test def map invalidation with #[cfg] below change --- crates/hir_def/src/nameres/tests/incremental.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/crates/hir_def/src/nameres/tests/incremental.rs b/crates/hir_def/src/nameres/tests/incremental.rs index cfbc62cc4..8981fa7c9 100644 --- a/crates/hir_def/src/nameres/tests/incremental.rs +++ b/crates/hir_def/src/nameres/tests/incremental.rs @@ -38,6 +38,9 @@ fn typing_inside_a_function_should_not_invalidate_def_map() { fn foo() -> i32 { 1 + 1 } + + #[cfg(never)] + fn no() {} //- /foo/mod.rs pub mod bar; @@ -53,6 +56,9 @@ fn typing_inside_a_function_should_not_invalidate_def_map() { use E::*; fn foo() -> i32 { 92 } + + #[cfg(never)] + fn no() {} ", ); } -- cgit v1.2.3