From c033d18700e86c9bb028344f28e2eb7d670fe241 Mon Sep 17 00:00:00 2001 From: uHOOCCOOHu Date: Wed, 11 Sep 2019 22:39:02 +0800 Subject: Fix typo --- crates/ra_hir/src/nameres.rs | 2 +- crates/ra_hir/src/nameres/tests/macros.rs | 2 +- crates/ra_hir/src/ty/tests.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'crates/ra_hir/src') 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 { ); } - // Since it is a quantified path here, it should not contains legacy macros + // Since it is a qualified path here, it should not contains legacy macros match self[module.module_id].scope.get(&segment.name) { Some(res) => res.def, _ => { 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() { } #[test] -fn path_quantified_macros() { +fn path_qualified_macros() { let map = def_map( " //- /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() { } #[test] -fn infer_path_quantified_macros_expanded() { +fn infer_path_qualified_macros_expanded() { assert_snapshot!( infer(r#" #[macro_export] -- cgit v1.2.3