aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_hir_def/src/nameres/tests/incremental.rs
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2020-04-11 16:54:46 +0100
committerAleksey Kladov <[email protected]>2020-04-11 16:54:46 +0100
commitf980b0752994a1b823499f6edb10fd9c4c285c42 (patch)
tree56227291b99e0bdccf2b41c911d797794908d3c4 /crates/ra_hir_def/src/nameres/tests/incremental.rs
parent38c67e5c0d4297f45ab2b78a00b59f737796d160 (diff)
Make incremental nameres test harder
Diffstat (limited to 'crates/ra_hir_def/src/nameres/tests/incremental.rs')
-rw-r--r--crates/ra_hir_def/src/nameres/tests/incremental.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/crates/ra_hir_def/src/nameres/tests/incremental.rs b/crates/ra_hir_def/src/nameres/tests/incremental.rs
index 496fc6b08..87165ac33 100644
--- a/crates/ra_hir_def/src/nameres/tests/incremental.rs
+++ b/crates/ra_hir_def/src/nameres/tests/incremental.rs
@@ -32,6 +32,9 @@ fn typing_inside_a_function_should_not_invalidate_def_map() {
32 32
33 use crate::foo::bar::Baz; 33 use crate::foo::bar::Baz;
34 34
35 enum E { A, B }
36 use E::*;
37
35 fn foo() -> i32 { 38 fn foo() -> i32 {
36 1 + 1 39 1 + 1
37 } 40 }
@@ -46,6 +49,9 @@ fn typing_inside_a_function_should_not_invalidate_def_map() {
46 49
47 use crate::foo::bar::Baz; 50 use crate::foo::bar::Baz;
48 51
52 enum E { A, B }
53 use E::*;
54
49 fn foo() -> i32 { 92 } 55 fn foo() -> i32 { 92 }
50 ", 56 ",
51 ); 57 );