diff options
| author | dianne <diannes.gm@gmail.com> | 2025-05-19 18:02:54 -0700 |
|---|---|---|
| committer | dianne <diannes.gm@gmail.com> | 2025-05-19 18:02:54 -0700 |
| commit | ed983c21842be5e84f11b745c0c04ea23baa5509 (patch) | |
| tree | f44a8c3ee71a504c52adf3d5a4f53244398e5c3d /tests/codegen/src-hash-algorithm/src-hash-algorithm-md5.rs | |
| parent | e42bbfe1f7c26f8760a99c4b1f27d33aba1040bb (diff) | |
| download | rust-ed983c21842be5e84f11b745c0c04ea23baa5509.tar.gz rust-ed983c21842be5e84f11b745c0c04ea23baa5509.zip | |
only resolve top-level guard patterns' guards once
We resolve guard patterns' guards in `resolve_pattern_inner`, so to avoid resolving them multiple times, we must avoid doing so earlier. To accomplish this, `LateResolutionVisitor::visit_pat` contains a case for guard patterns that avoids visiting their guards while walking patterns. This fixes an ICE due to `visit::walk_pat` being used instead, which meant guards at the top level of a pattern would be visited twice.
Diffstat (limited to 'tests/codegen/src-hash-algorithm/src-hash-algorithm-md5.rs')
0 files changed, 0 insertions, 0 deletions
