Skip to content

Commit 6ca65bd

Browse files
committed
Print ConstKind::Placeholder just like TyKind::Placeholder
1 parent 306df94 commit 6ca65bd

File tree

1 file changed

+1
-15
lines changed

1 file changed

+1
-15
lines changed

src/librustc/ty/print/pretty.rs

+1-15
Original file line numberDiff line numberDiff line change
@@ -913,21 +913,7 @@ pub trait PrettyPrinter<'tcx>:
913913
ty::ConstKind::Bound(debruijn, bound_var) => {
914914
self.pretty_print_bound_var(debruijn, bound_var)?
915915
}
916-
ty::ConstKind::Placeholder(_) => {
917-
// fallback
918-
if print_ty {
919-
self = self.typed_value(
920-
|mut this| {
921-
write!(this, "{:?}", ct.val)?;
922-
Ok(this)
923-
},
924-
|this| this.print_type(ct.ty),
925-
": ",
926-
)?;
927-
} else {
928-
p!(write("{:?}", ct.val));
929-
}
930-
}
916+
ty::ConstKind::Placeholder(placeholder) => p!(write("Placeholder({:?})", placeholder)),
931917
};
932918
Ok(self)
933919
}

0 commit comments

Comments
 (0)