about summary refs log tree commit diff
path: root/compiler/rustc_pattern_analysis/src/constructor.rs
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2024-02-23 09:42:13 +0100
committerGitHub <noreply@github.com>2024-02-23 09:42:13 +0100
commit52805b0cb4521be0af3213345d76dfa9a1c8589b (patch)
tree7529d0ce5034537da2c971f4c143e367e36690b2 /compiler/rustc_pattern_analysis/src/constructor.rs
parent5de3a4ce0e4f4105c663fafef34c1b370fd402a4 (diff)
parent21bb1a435907294e50a95359fedcf5ebd5de1959 (diff)
downloadrust-52805b0cb4521be0af3213345d76dfa9a1c8589b.tar.gz
rust-52805b0cb4521be0af3213345d76dfa9a1c8589b.zip
Rollup merge of #121482 - nnethercote:fix-121455, r=oli-obk
Allow for a missing `adt_def` in `NamePrivacyVisitor`.

This was caused by 72b172bdf6 in #121206. That commit removed an early return from `analysis` when there are stashed errors. As a result, it's possible to reach privacy analysis when there are stashed errors, which means more code paths can be reached. One such code path was handled in that commit, where a `span_bug` was changed to a `span_delayed_bug`.

This commit handles another such code path uncovered by fuzzing, in much the same way.

Fixes #121455.

r? `@oli-obk`
Diffstat (limited to 'compiler/rustc_pattern_analysis/src/constructor.rs')
0 files changed, 0 insertions, 0 deletions