Fix typo
This commit is contained in:
@@ -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) {
|
match self[module.module_id].scope.get(&segment.name) {
|
||||||
Some(res) => res.def,
|
Some(res) => res.def,
|
||||||
_ => {
|
_ => {
|
||||||
|
|||||||
@@ -430,7 +430,7 @@ fn macro_use_can_be_aliased() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn path_quantified_macros() {
|
fn path_qualified_macros() {
|
||||||
let map = def_map(
|
let map = def_map(
|
||||||
"
|
"
|
||||||
//- /main.rs
|
//- /main.rs
|
||||||
|
|||||||
@@ -2839,7 +2839,7 @@ fn main() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn infer_path_quantified_macros_expanded() {
|
fn infer_path_qualified_macros_expanded() {
|
||||||
assert_snapshot!(
|
assert_snapshot!(
|
||||||
infer(r#"
|
infer(r#"
|
||||||
#[macro_export]
|
#[macro_export]
|
||||||
|
|||||||
@@ -589,7 +589,7 @@ mod tests {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn completes_quantified_macros() {
|
fn completes_qualified_macros() {
|
||||||
assert_debug_snapshot!(
|
assert_debug_snapshot!(
|
||||||
do_reference_completion(
|
do_reference_completion(
|
||||||
"
|
"
|
||||||
|
|||||||
Reference in New Issue
Block a user