Rollup merge of #140111 - jogru0:redundant_pattern, r=compiler-errors

cleanup redundant pattern instances

Just two small code cleanups.
This commit is contained in:
Chris Denton 2025-04-21 18:53:20 +00:00 committed by GitHub
commit 8ecaf148e7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View file

@ -514,7 +514,7 @@ pub(crate) mod rustc {
}
}
ty::Tuple(fields) => fields[i.as_usize()],
kind @ _ => unimplemented!(
kind => unimplemented!(
"only a subset of `Ty::ty_and_layout_field`'s functionality is implemented. implementation needed for {:?}",
kind
),