mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-30 13:51:31 +00:00
Fix typo
This commit is contained in:
parent
c66a789a04
commit
c033d18700
4 changed files with 4 additions and 4 deletions
|
@ -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(
|
||||||
"
|
"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue