Skip to content

Commit 9d65342

Browse files
committed
fix nit
1 parent 21b4a9c commit 9d65342

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)