Skip to content

Commit

Permalink
Rollup merge of #117741 - eltociear:patch-23, r=compiler-errors
Browse files Browse the repository at this point in the history
Fix typo in internal.rs

covert -> convert
  • Loading branch information
matthiaskrgr authored Nov 10, 2023
2 parents 0f1da7e + b864821 commit 7fd7719
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/rustc_smir/src/rustc_internal/internal.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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:?}")
}
}
}
Expand Down

0 comments on commit 7fd7719

Please sign in to comment.