Skip to content

Commit

Permalink
Rollup merge of rust-lang#93424 - lcnr:nit, r=spastorino
Browse files Browse the repository at this point in the history
fix nit
  • Loading branch information
matthiaskrgr authored Jan 29, 2022
2 parents 45f9ac8 + 9d65342 commit 0aac06f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/rustc_middle/src/ty/sty.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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),
}
}
Expand Down

0 comments on commit 0aac06f

Please sign in to comment.