review feedback

This commit is contained in:
Ralf Jung
2022-07-05 17:38:46 -04:00
parent 052651dd13
commit ac265cdc19
11 changed files with 15 additions and 21 deletions

View File

@@ -157,7 +157,7 @@ pub(super) fn op_to_const<'tcx>(
"this MPlaceTy must come from a validated constant, thus we can assume the \
alignment is correct",
);
ConstValue::ZST
ConstValue::Zst
}
}
};

View File

@@ -272,7 +272,7 @@ pub fn valtree_to_const_value<'tcx>(
match ty.kind() {
ty::FnDef(..) => {
assert!(valtree.unwrap_branch().is_empty());
ConstValue::ZST
ConstValue::Zst
}
ty::Bool | ty::Int(_) | ty::Uint(_) | ty::Float(_) | ty::Char => match valtree {
ty::ValTree::Leaf(scalar_int) => ConstValue::Scalar(Scalar::Int(scalar_int)),