Print types for unevaluated constants

This commit is contained in:
Oliver Scherer
2019-05-11 15:48:47 +02:00
parent fa459a08e1
commit 825cfdbadc
+2 -2
View File
@@ -829,10 +829,10 @@ fn pretty_print_const(
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);