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
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -514,7 +514,7 @@ fn ty_field<'tcx>(
}
}
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
),
+1 -1
View File
@@ -3265,7 +3265,7 @@ fn hash<H: Hasher>(&self, h: &mut H) {
if !verbatim {
component_start += match tail {
[b'.'] => 1,
[b'.', sep @ _, ..] if is_sep_byte(*sep) => 1,
[b'.', sep, ..] if is_sep_byte(*sep) => 1,
_ => 0,
};
}