diff options
author | uHOOCCOOHu <[email protected]> | 2019-09-11 15:39:02 +0100 |
---|---|---|
committer | uHOOCCOOHu <[email protected]> | 2019-09-11 15:39:02 +0100 |
commit | c033d18700e86c9bb028344f28e2eb7d670fe241 (patch) | |
tree | dfd93ef4401729077debe48fac1b690d35b82c5f | |
parent | c66a789a045c3c521620af73c1f06314fbe315bb (diff) |
Fix typo
-rw-r--r-- | crates/ra_hir/src/nameres.rs | 2 | ||||
-rw-r--r-- | crates/ra_hir/src/nameres/tests/macros.rs | 2 | ||||
-rw-r--r-- | crates/ra_hir/src/ty/tests.rs | 2 | ||||
-rw-r--r-- | crates/ra_ide_api/src/completion/complete_path.rs | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/crates/ra_hir/src/nameres.rs b/crates/ra_hir/src/nameres.rs index 7488d75a5..3d8691f53 100644 --- a/crates/ra_hir/src/nameres.rs +++ b/crates/ra_hir/src/nameres.rs | |||
@@ -416,7 +416,7 @@ impl CrateDefMap { | |||
416 | ); | 416 | ); |
417 | } | 417 | } |
418 | 418 | ||
419 | // Since it is a quantified path here, it should not contains legacy macros | 419 | // Since it is a qualified path here, it should not contains legacy macros |
420 | match self[module.module_id].scope.get(&segment.name) { | 420 | match self[module.module_id].scope.get(&segment.name) { |
421 | Some(res) => res.def, | 421 | Some(res) => res.def, |
422 | _ => { | 422 | _ => { |
diff --git a/crates/ra_hir/src/nameres/tests/macros.rs b/crates/ra_hir/src/nameres/tests/macros.rs index 20ee63c67..6e0bc437e 100644 --- a/crates/ra_hir/src/nameres/tests/macros.rs +++ b/crates/ra_hir/src/nameres/tests/macros.rs | |||
@@ -430,7 +430,7 @@ fn macro_use_can_be_aliased() { | |||
430 | } | 430 | } |
431 | 431 | ||
432 | #[test] | 432 | #[test] |
433 | fn path_quantified_macros() { | 433 | fn path_qualified_macros() { |
434 | let map = def_map( | 434 | let map = def_map( |
435 | " | 435 | " |
436 | //- /main.rs | 436 | //- /main.rs |
diff --git a/crates/ra_hir/src/ty/tests.rs b/crates/ra_hir/src/ty/tests.rs index c60e72abf..869ae13f1 100644 --- a/crates/ra_hir/src/ty/tests.rs +++ b/crates/ra_hir/src/ty/tests.rs | |||
@@ -2839,7 +2839,7 @@ fn main() { | |||
2839 | } | 2839 | } |
2840 | 2840 | ||
2841 | #[test] | 2841 | #[test] |
2842 | fn infer_path_quantified_macros_expanded() { | 2842 | fn infer_path_qualified_macros_expanded() { |
2843 | assert_snapshot!( | 2843 | assert_snapshot!( |
2844 | infer(r#" | 2844 | infer(r#" |
2845 | #[macro_export] | 2845 | #[macro_export] |
diff --git a/crates/ra_ide_api/src/completion/complete_path.rs b/crates/ra_ide_api/src/completion/complete_path.rs index 55c78d305..31e7dffe8 100644 --- a/crates/ra_ide_api/src/completion/complete_path.rs +++ b/crates/ra_ide_api/src/completion/complete_path.rs | |||
@@ -589,7 +589,7 @@ mod tests { | |||
589 | } | 589 | } |
590 | 590 | ||
591 | #[test] | 591 | #[test] |
592 | fn completes_quantified_macros() { | 592 | fn completes_qualified_macros() { |
593 | assert_debug_snapshot!( | 593 | assert_debug_snapshot!( |
594 | do_reference_completion( | 594 | do_reference_completion( |
595 | " | 595 | " |