diff options
| author | Oliver Scherer <github35764891676564198441@oli-obk.de> | 2019-05-11 15:48:47 +0200 |
|---|---|---|
| committer | Oliver Scherer <github35764891676564198441@oli-obk.de> | 2019-05-25 10:07:02 +0200 |
| commit | 825cfdbadcbf7877ea7bf925664ef760c364980d (patch) | |
| tree | 5e33241aa9f10ce644344ccd693b15b0f8df1d32 | |
| parent | fa459a08e136a269057be92af279c8290ce62cc8 (diff) | |
| download | rust-825cfdbadcbf7877ea7bf925664ef760c364980d.tar.gz rust-825cfdbadcbf7877ea7bf925664ef760c364980d.zip | |
Print types for unevaluated constants
| -rw-r--r-- | src/librustc/ty/print/pretty.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/librustc/ty/print/pretty.rs b/src/librustc/ty/print/pretty.rs index d8150c1895b..67265633318 100644 --- a/src/librustc/ty/print/pretty.rs +++ b/src/librustc/ty/print/pretty.rs @@ -829,10 +829,10 @@ pub trait PrettyPrinter<'gcx: 'tcx, 'tcx>: if let Ok(snip) = self.tcx().sess.source_map().span_to_snippet(span) { p!(write("{}", snip)) } else { - p!(write("_")) + p!(write("_: "), print(ct.ty)) } } else { - p!(write("_")) + p!(write("_: "), print(ct.ty)) }, } return Ok(self); |
