We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 2836dcd + 9d65342 commit 6621ff4Copy full SHA for 6621ff4
compiler/rustc_middle/src/ty/sty.rs
@@ -1810,7 +1810,7 @@ impl<'tcx> TyS<'tcx> {
1810
pub fn sequence_element_type(&self, tcx: TyCtxt<'tcx>) -> Ty<'tcx> {
1811
match self.kind() {
1812
Array(ty, _) | Slice(ty) => ty,
1813
- Str => tcx.mk_mach_uint(ty::UintTy::U8),
+ Str => tcx.types.u8,
1814
_ => bug!("`sequence_element_type` called on non-sequence value: {}", self),
1815
}
1816
0 commit comments