Skip to content

Commit 6621ff4

Browse files
authored
Rollup merge of #93424 - lcnr:nit, r=spastorino
fix nit
2 parents 2836dcd + 9d65342 commit 6621ff4

File tree

1 file changed

+1
-1
lines changed
  • compiler/rustc_middle/src/ty

1 file changed

+1
-1
lines changed

compiler/rustc_middle/src/ty/sty.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1810,7 +1810,7 @@ impl<'tcx> TyS<'tcx> {
18101810
pub fn sequence_element_type(&self, tcx: TyCtxt<'tcx>) -> Ty<'tcx> {
18111811
match self.kind() {
18121812
Array(ty, _) | Slice(ty) => ty,
1813-
Str => tcx.mk_mach_uint(ty::UintTy::U8),
1813+
Str => tcx.types.u8,
18141814
_ => bug!("`sequence_element_type` called on non-sequence value: {}", self),
18151815
}
18161816
}

0 commit comments

Comments
 (0)