Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
librustc_resolve: make sure pattern def gets recorded if `resolve_pat…
…h` returns `Err(true)` In 1a374b8, (pr #33046) fixed the error reporting of a specific case, but the change that was introduced did not make sure that `record_def` was called in all cases, which lead to an ICE in [1]. This change restores the original `else` case, but keeps the changes that were committed in 1a374b8. This commit fixes issue #33293. [1] `rustc::middle::mem_categorization::MemCategorizationContext::cat_pattern_`
- Loading branch information