Fix typo in internal.rs
covert -> convert
This commit is contained in:
parent
d8dbf7ca0e
commit
b8648216a5
1 changed files with 1 additions and 1 deletions
|
@ -54,7 +54,7 @@ fn ty_const<'tcx>(constant: &Const, tables: &mut Tables<'tcx>) -> rustc_ty::Cons
|
||||||
match constant.internal(tables) {
|
match constant.internal(tables) {
|
||||||
rustc_middle::mir::Const::Ty(c) => c,
|
rustc_middle::mir::Const::Ty(c) => c,
|
||||||
cnst => {
|
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:?}")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue