We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 306df94 commit 6ca65bdCopy full SHA for 6ca65bd
src/librustc/ty/print/pretty.rs
@@ -913,21 +913,7 @@ pub trait PrettyPrinter<'tcx>:
913
ty::ConstKind::Bound(debruijn, bound_var) => {
914
self.pretty_print_bound_var(debruijn, bound_var)?
915
}
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
+ ty::ConstKind::Placeholder(placeholder) => p!(write("Placeholder({:?})", placeholder)),
931
};
932
Ok(self)
933
0 commit comments