about summary refs log tree commit diff
path: root/compiler/rustc_resolve/src
diff options
context:
space:
mode:
authorTakayuki Maeda <takoyaki0316@gmail.com>2022-03-04 13:07:39 +0900
committerTakayuki Maeda <takoyaki0316@gmail.com>2022-03-04 14:06:27 +0900
commit068a233d4d363333237c721e218f48c98694afce (patch)
tree655cdf225b1ca13ed13998e2aa122672d1a439a5 /compiler/rustc_resolve/src
parent06460fe72c1ad9962c65f3b7326481a81979f465 (diff)
downloadrust-068a233d4d363333237c721e218f48c98694afce.tar.gz
rust-068a233d4d363333237c721e218f48c98694afce.zip
fix invalid `unresolved imports` errors the asterisk wildcard syntax causes
use a path variabale
Diffstat (limited to 'compiler/rustc_resolve/src')
-rw-r--r--compiler/rustc_resolve/src/imports.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/compiler/rustc_resolve/src/imports.rs b/compiler/rustc_resolve/src/imports.rs
index bf570fb0f80..70ade7a5600 100644
--- a/compiler/rustc_resolve/src/imports.rs
+++ b/compiler/rustc_resolve/src/imports.rs
@@ -720,7 +720,9 @@ impl<'a, 'b> ImportResolver<'a, 'b> {
                     note: Vec::new(),
                     suggestion: None,
                 };
-                errors.push((path, err));
+                if path.contains("::") {
+                    errors.push((path, err))
+                }
             }
         }