Skip to content

Commit

Permalink
Print types for unevaluated constants
Browse files Browse the repository at this point in the history
  • Loading branch information
oli-obk committed May 25, 2019
1 parent fa459a0 commit 825cfdb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/librustc/ty/print/pretty.rs
Expand Up @@ -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);
Expand Down

0 comments on commit 825cfdb

Please sign in to comment.