diff options
| author | bohan <bohan-zhang@foxmail.com> | 2023-07-26 22:46:49 +0800 |
|---|---|---|
| committer | bohan <bohan-zhang@foxmail.com> | 2023-07-29 00:19:50 +0800 |
| commit | cac0bd0bef0661948f558592f43908221e52e2a0 (patch) | |
| tree | f4ab9e6b390451509a5445af6fb7f2536a8cbf2b /compiler/rustc_resolve/src/ident.rs | |
| parent | 317ec04d18ab9c5d09a4d9b4418a12da8974b961 (diff) | |
| download | rust-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.rs | 2 |
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, }); |
