Fix typo in internal.rs
covert -> convert
This commit is contained in:
committed by
GitHub
parent
d8dbf7ca0e
commit
b8648216a5
@@ -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:?}")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user