mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-30 05:45:12 +00:00
Test def map invalidation with #[cfg] below change
This commit is contained in:
parent
ad343870ec
commit
74cb3e96a5
1 changed files with 6 additions and 0 deletions
|
@ -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() {}
|
||||
",
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue