Print types for unevaluated constants

This commit is contained in:
Oliver Scherer 2019-05-11 15:48:47 +02:00
parent fa459a08e1
commit 825cfdbadc

View file

@ -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);