tweak names and output and bless

This commit is contained in:
Ralf Jung
2022-07-06 10:14:46 -04:00
parent ac265cdc19
commit 4e7aaf1f44
124 changed files with 241 additions and 231 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::ZeroSized
}
}
};

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::ZeroSized
}
ty::Bool | ty::Int(_) | ty::Uint(_) | ty::Float(_) | ty::Char => match valtree {
ty::ValTree::Leaf(scalar_int) => ConstValue::Scalar(Scalar::Int(scalar_int)),