1
Fork 0

Rollup merge of #117741 - eltociear:patch-23, r=compiler-errors

Fix typo in internal.rs

covert -> convert
This commit is contained in:
Matthias Krüger 2023-11-10 01:50:25 +01:00 committed by GitHub
commit 7fd7719ca1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -54,7 +54,7 @@ fn ty_const<'tcx>(constant: &Const, tables: &mut Tables<'tcx>) -> rustc_ty::Cons
match constant.internal(tables) {
rustc_middle::mir::Const::Ty(c) => c,
cnst => {
panic!("Trying to covert constant `{constant:?}` to type constant, but found {cnst:?}")
panic!("Trying to convert constant `{constant:?}` to type constant, but found {cnst:?}")
}
}
}