1
Fork 0

Rollup merge of #123512 - Jules-Bertholet:ref-pat-eat-one-layer-2024, r=Nadrieril

Match ergonomics 2024: Implement eat-one-layer

r? `@Nadrieril`

cc #123076

`@rustbot` label A-edition-2024 A-patterns
This commit is contained in:
Guillaume Gomez 2024-04-16 21:41:24 +02:00 committed by GitHub
commit 239b3728d5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
14 changed files with 680 additions and 77 deletions

View file

@ -69,7 +69,7 @@ impl<'a, 'tcx> PatCtxt<'a, 'tcx> {
hir::PatKind::Ref(inner, _)
if self.typeck_results.skipped_ref_pats().contains(pat.hir_id) =>
{
self.lower_pattern_unadjusted(inner)
self.lower_pattern(inner)
}
_ => self.lower_pattern_unadjusted(pat),
};