Print types for unevaluated constants
This commit is contained in:
parent
fa459a08e1
commit
825cfdbadc
1 changed files with 2 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue