File tree 2 files changed +3
-1
lines changed
2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -831,9 +831,11 @@ impl<'a> Resolver<'a> {
831
831
832
832
// collect results based on the filter function
833
833
// avoid suggesting anything from the same module in which we are resolving
834
+ // avoid suggesting anything with a hygienic name
834
835
if ident. name == lookup_ident. name
835
836
&& ns == namespace
836
837
&& !ptr:: eq ( in_module, parent_scope. module )
838
+ && !ident. span . normalize_to_macros_2_0 ( ) . from_expansion ( )
837
839
{
838
840
let res = name_binding. res ( ) ;
839
841
if filter_fn ( res) {
Original file line number Diff line number Diff line change @@ -709,7 +709,7 @@ impl SyntaxContext {
709
709
/// pub fn f() {} // `f`'s `SyntaxContext` has a single `ExpnId` from `m`.
710
710
/// pub fn $i() {} // `$i`'s `SyntaxContext` is empty.
711
711
/// }
712
- /// n(f);
712
+ /// n! (f);
713
713
/// macro n($j:ident) {
714
714
/// use foo::*;
715
715
/// f(); // `f`'s `SyntaxContext` has a mark from `m` and a mark from `n`
You can’t perform that action at this time.
0 commit comments