diff options
| author | Oliver Scherer <github35764891676564198441@oli-obk.de> | 2020-03-13 10:55:57 +0100 |
|---|---|---|
| committer | Oliver Scherer <github35764891676564198441@oli-obk.de> | 2020-03-13 10:55:57 +0100 |
| commit | 6ca65bdd752a32b376a7f5cb1dba4953e91f46bb (patch) | |
| tree | 8927cc232eb52ea62c7f064dceab64186cb12340 /src | |
| parent | 306df94ed34521d3d3536e2393b466519f6dfc96 (diff) | |
| download | rust-6ca65bdd752a32b376a7f5cb1dba4953e91f46bb.tar.gz rust-6ca65bdd752a32b376a7f5cb1dba4953e91f46bb.zip | |
Print ConstKind::Placeholder just like TyKind::Placeholder
Diffstat (limited to 'src')
| -rw-r--r-- | src/librustc/ty/print/pretty.rs | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/src/librustc/ty/print/pretty.rs b/src/librustc/ty/print/pretty.rs index 1dade8c0e08..cb01d821c18 100644 --- a/src/librustc/ty/print/pretty.rs +++ b/src/librustc/ty/print/pretty.rs @@ -913,21 +913,7 @@ pub trait PrettyPrinter<'tcx>: ty::ConstKind::Bound(debruijn, bound_var) => { self.pretty_print_bound_var(debruijn, bound_var)? } - ty::ConstKind::Placeholder(_) => { - // fallback - if print_ty { - self = self.typed_value( - |mut this| { - write!(this, "{:?}", ct.val)?; - Ok(this) - }, - |this| this.print_type(ct.ty), - ": ", - )?; - } else { - p!(write("{:?}", ct.val)); - } - } + ty::ConstKind::Placeholder(placeholder) => p!(write("Placeholder({:?})", placeholder)), }; Ok(self) } |
