diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2022-01-29 14:46:33 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-01-29 14:46:33 +0100 |
| commit | 6621ff4a7c3ffaa233d94d53d5917fc6d3ea74a6 (patch) | |
| tree | 8aa251fad559b882874ad3a8d2eb76d58f43def7 | |
| parent | 2836dcd2dfaeb569060f8894f7b212e85e0eb834 (diff) | |
| parent | 9d65342591d344c5358ee1aa2dd22c72748549f9 (diff) | |
| download | rust-6621ff4a7c3ffaa233d94d53d5917fc6d3ea74a6.tar.gz rust-6621ff4a7c3ffaa233d94d53d5917fc6d3ea74a6.zip | |
Rollup merge of #93424 - lcnr:nit, r=spastorino
fix nit
| -rw-r--r-- | compiler/rustc_middle/src/ty/sty.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_middle/src/ty/sty.rs b/compiler/rustc_middle/src/ty/sty.rs index 20db25f7899..f70fde2a040 100644 --- a/compiler/rustc_middle/src/ty/sty.rs +++ b/compiler/rustc_middle/src/ty/sty.rs @@ -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), } } |
