about summary refs log tree commit diff
path: root/compiler/rustc_resolve/src/ident.rs
diff options
context:
space:
mode:
authorbohan <bohan-zhang@foxmail.com>2023-07-26 22:46:49 +0800
committerbohan <bohan-zhang@foxmail.com>2023-07-29 00:19:50 +0800
commitcac0bd0bef0661948f558592f43908221e52e2a0 (patch)
treef4ab9e6b390451509a5445af6fb7f2536a8cbf2b /compiler/rustc_resolve/src/ident.rs
parent317ec04d18ab9c5d09a4d9b4418a12da8974b961 (diff)
downloadrust-cac0bd0bef0661948f558592f43908221e52e2a0.tar.gz
rust-cac0bd0bef0661948f558592f43908221e52e2a0.zip
fix(resolve): update the ambiguity glob binding as warning recursively
Diffstat (limited to 'compiler/rustc_resolve/src/ident.rs')
-rw-r--r--compiler/rustc_resolve/src/ident.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/compiler/rustc_resolve/src/ident.rs b/compiler/rustc_resolve/src/ident.rs
index de431444769..00282df700b 100644
--- a/compiler/rustc_resolve/src/ident.rs
+++ b/compiler/rustc_resolve/src/ident.rs
@@ -677,6 +677,7 @@ impl<'a, 'tcx> Resolver<'a, 'tcx> {
                                         ident: orig_ident,
                                         b1: innermost_binding,
                                         b2: binding,
+                                        warning: false,
                                         misc1: misc(innermost_flags),
                                         misc2: misc(flags),
                                     });
@@ -905,6 +906,7 @@ impl<'a, 'tcx> Resolver<'a, 'tcx> {
                     ident,
                     b1: binding,
                     b2: shadowed_glob,
+                    warning: false,
                     misc1: AmbiguityErrorMisc::None,
                     misc2: AmbiguityErrorMisc::None,
                 });