1
Fork 0

Don't suggest importing items with hygienic names

This will potentially hide a few correct suggestions, but importing
these items from another module is not generally possible.
This commit is contained in:
Matthew Jasper 2021-10-21 23:36:51 +01:00
parent 4ecb49eba3
commit 1536d7220b
2 changed files with 3 additions and 1 deletions

View file

@ -709,7 +709,7 @@ impl SyntaxContext {
/// pub fn f() {} // `f`'s `SyntaxContext` has a single `ExpnId` from `m`.
/// pub fn $i() {} // `$i`'s `SyntaxContext` is empty.
/// }
/// n(f);
/// n!(f);
/// macro n($j:ident) {
/// use foo::*;
/// f(); // `f`'s `SyntaxContext` has a mark from `m` and a mark from `n`