Skip to content

Commit 74cb3e9

Browse files
Test def map invalidation with #[cfg] below change
1 parent ad34387 commit 74cb3e9

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

crates/hir_def/src/nameres/tests/incremental.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,9 @@ fn typing_inside_a_function_should_not_invalidate_def_map() {
3838
fn foo() -> i32 {
3939
1 + 1
4040
}
41+
42+
#[cfg(never)]
43+
fn no() {}
4144
//- /foo/mod.rs
4245
pub mod bar;
4346
@@ -53,6 +56,9 @@ fn typing_inside_a_function_should_not_invalidate_def_map() {
5356
use E::*;
5457
5558
fn foo() -> i32 { 92 }
59+
60+
#[cfg(never)]
61+
fn no() {}
5662
",
5763
);
5864
}

0 commit comments

Comments
 (0)