Fix incorrect ordering
I introduced this mistake in 175976e2a2
and I can't quite remember what the reasoning was back then. I think I
modeled it on `apply_constructor`, not realizing there was an important
difference in the order in which fields were stored.
This commit is contained in:
parent
34cce58d81
commit
e65d49d338
1 changed files with 1 additions and 1 deletions
|
|
@ -1033,7 +1033,7 @@ impl<'tcx> Constructor<'tcx> {
|
|||
|
||||
/// Like `apply`, but where all the subpatterns are wildcards `_`.
|
||||
fn apply_wildcards<'a>(&self, cx: &MatchCheckCtxt<'a, 'tcx>, ty: Ty<'tcx>) -> Pat<'tcx> {
|
||||
let subpatterns = self.wildcard_subpatterns(cx, ty).into_iter().rev();
|
||||
let subpatterns = self.wildcard_subpatterns(cx, ty).into_iter();
|
||||
self.apply(cx, ty, subpatterns)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue