1
Fork 0

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

This commit is contained in:
Alexander Cyon 2024-09-02 07:42:38 +02:00
parent 78d5c04d9c
commit ac69544a17
No known key found for this signature in database
35 changed files with 44 additions and 44 deletions

View file

@ -701,7 +701,7 @@ fn push_const_param<'tcx>(tcx: TyCtxt<'tcx>, ct: ty::Const<'tcx>, output: &mut S
match ty.kind() {
ty::Int(ity) => {
// FIXME: directly extract the bits from a valtree instead of evaluating an
// alreay evaluated `Const` in order to get the bits.
// already evaluated `Const` in order to get the bits.
let bits = ct.eval_bits(tcx, ty::ParamEnv::reveal_all());
let val = Integer::from_int_ty(&tcx, *ity).size().sign_extend(bits) as i128;
write!(output, "{val}")