mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-17 14:23:25 +03:00
Print types for unevaluated constants
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user