From 1536d7220b847d8a843a3357cc62ef5704f2c690 Mon Sep 17 00:00:00 2001 From: Matthew Jasper Date: Thu, 21 Oct 2021 23:36:51 +0100 Subject: 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. --- compiler/rustc_span/src/hygiene.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'compiler/rustc_span/src') diff --git a/compiler/rustc_span/src/hygiene.rs b/compiler/rustc_span/src/hygiene.rs index aa15febe885..724d1904dc3 100644 --- a/compiler/rustc_span/src/hygiene.rs +++ b/compiler/rustc_span/src/hygiene.rs @@ -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` -- cgit 1.4.1-3-g733a5