chore: Fix typos in 'compiler' (batch 2)

This commit is contained in:
Alexander Cyon
2024-09-02 07:50:22 +02:00
parent 78d5c04d9c
commit 00de006f22
34 changed files with 54 additions and 54 deletions

View File

@@ -240,7 +240,7 @@ impl<'tcx> Const<'tcx> {
match self {
Const::Ty(ty, ct) => {
match ct.kind() {
// Dont use the outter ty as on invalid code we can wind up with them not being the same.
// Dont use the outer ty as on invalid code we can wind up with them not being the same.
// this then results in allowing const eval to add `1_i64 + 1_usize` in cases where the mir
// was originally `({N: usize} + 1_usize)` under `generic_const_exprs`.
ty::ConstKind::Value(ty, _) => ty,