File tree Expand file tree Collapse file tree 1 file changed +22
-22
lines changed
crates/ra_hir/src/nameres Expand file tree Collapse file tree 1 file changed +22
-22
lines changed Original file line number Diff line number Diff line change @@ -351,27 +351,25 @@ fn typing_inside_a_function_should_not_invalidate_item_map() {
351
351
check_item_map_is_not_recomputed (
352
352
"
353
353
//- /lib.rs
354
- mod foo;
354
+ mod foo;<|>
355
355
356
356
use crate::foo::bar::Baz;
357
357
358
+ fn foo() -> i32 {
359
+ 1 + 1
360
+ }
358
361
//- /foo/mod.rs
359
362
pub mod bar;
360
363
361
364
//- /foo/bar.rs
362
- <|>
363
- salsa::query_group! {
364
- trait Baz {
365
- fn foo() -> i32 { 1 + 1 }
366
- }
367
- }
365
+ pub struct Baz;
368
366
" ,
369
367
"
370
- salsa::query_group! {
371
- trait Baz {
372
- fn foo() -> i32 { 92 }
373
- }
374
- }
368
+ mod foo;
369
+
370
+ use crate:: foo::bar::Baz;
371
+
372
+ fn foo() -> i32 { 92 }
375
373
" ,
376
374
) ;
377
375
}
@@ -381,25 +379,27 @@ fn typing_inside_a_function_inside_a_macro_should_not_invalidate_item_map() {
381
379
check_item_map_is_not_recomputed (
382
380
"
383
381
//- /lib.rs
384
- mod foo;<|>
382
+ mod foo;
385
383
386
384
use crate::foo::bar::Baz;
387
385
388
- fn foo() -> i32 {
389
- 1 + 1
390
- }
391
386
//- /foo/mod.rs
392
387
pub mod bar;
393
388
394
389
//- /foo/bar.rs
395
- pub struct Baz;
390
+ <|>
391
+ salsa::query_group! {
392
+ trait Baz {
393
+ fn foo() -> i32 { 1 + 1 }
394
+ }
395
+ }
396
396
" ,
397
397
"
398
- mod foo;
399
-
400
- use crate:: foo::bar::Baz;
401
-
402
- fn foo() -> i32 { 92 }
398
+ salsa::query_group! {
399
+ trait Baz {
400
+ fn foo() -> i32 { 92 }
401
+ }
402
+ }
403
403
" ,
404
404
) ;
405
405
}
You can’t perform that action at this time.
0 commit comments