This commit is contained in:
b-naber 2022-09-15 22:27:41 +02:00
parent 6af8fb7936
commit d77248e6d2
5 changed files with 9 additions and 19 deletions

View file

@ -2643,6 +2643,7 @@ impl<'tcx> Display for ConstantKind<'tcx> {
match *self {
ConstantKind::Ty(c) => pretty_print_const(c, fmt, true),
ConstantKind::Val(val, ty) => pretty_print_const_value(val, ty, fmt, true),
// FIXME(valtrees): Correctly print mir constants.
ConstantKind::Unevaluated(..) => {
fmt.write_str("_")?;
Ok(())