commit
6621ff4a7c
1 changed files with 1 additions and 1 deletions
|
@ -1810,7 +1810,7 @@ impl<'tcx> TyS<'tcx> {
|
||||||
pub fn sequence_element_type(&self, tcx: TyCtxt<'tcx>) -> Ty<'tcx> {
|
pub fn sequence_element_type(&self, tcx: TyCtxt<'tcx>) -> Ty<'tcx> {
|
||||||
match self.kind() {
|
match self.kind() {
|
||||||
Array(ty, _) | Slice(ty) => ty,
|
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),
|
_ => bug!("`sequence_element_type` called on non-sequence value: {}", self),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue