Merge #10557
10557: fix: Fix qualified path completion not completing macros r=Veykril a=Veykril bors r+ Co-authored-by: Lukas Wirth <lukastw97@gmail.com>
This commit is contained in:
commit
2d7d7f729d
@ -223,6 +223,7 @@ pub(crate) fn complete_qualified_path(acc: &mut Completions, ctx: &CompletionCon
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
hir::PathResolution::Macro(mac) => acc.add_macro(ctx, None, mac),
|
||||||
_ => {}
|
_ => {}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -122,11 +122,14 @@ fn plain_qualified_use_tree() {
|
|||||||
mod foo {
|
mod foo {
|
||||||
struct Private;
|
struct Private;
|
||||||
pub struct Foo;
|
pub struct Foo;
|
||||||
|
macro_rules! foo_ { {} => {} }
|
||||||
|
pub use foo_ as foo;
|
||||||
}
|
}
|
||||||
struct Bar;
|
struct Bar;
|
||||||
"#,
|
"#,
|
||||||
expect![[r#"
|
expect![[r#"
|
||||||
st Foo
|
st Foo
|
||||||
|
ma foo! macro_rules! foo_
|
||||||
"#]],
|
"#]],
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user