Skip to content
Permalink
Browse files

Print types for unevaluated constants

  • Loading branch information...
oli-obk committed May 11, 2019
1 parent fa459a0 commit 825cfdbadcbf7877ea7bf925664ef760c364980d
Showing with 2 additions and 2 deletions.
  1. +2 −2 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);

0 comments on commit 825cfdb

Please sign in to comment.
You can’t perform that action at this time.