Rollup merge of #93424 - lcnr:nit, r=spastorino

fix nit
This commit is contained in:
Matthias Krüger 2022-01-29 14:46:33 +01:00 committed by GitHub
commit 6621ff4a7c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1810,7 +1810,7 @@ impl<'tcx> TyS<'tcx> {
pub fn sequence_element_type(&self, tcx: TyCtxt<'tcx>) -> Ty<'tcx> {
match self.kind() {
Array(ty, _) | Slice(ty) => ty,
Str => tcx.mk_mach_uint(ty::UintTy::U8),
Str => tcx.types.u8,
_ => bug!("`sequence_element_type` called on non-sequence value: {}", self),
}
}