Rollup merge of #58167 - ljedrz:HirIdify_body_id, r=Zoxc

HirId-ify hir::BodyId

Another step towards https://github.com/rust-lang/rust/pull/57578.
This commit is contained in:
Mazdak Farrokhzad 2019-02-13 18:12:28 +01:00 committed by GitHub
commit adb2bb6e61
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
35 changed files with 175 additions and 147 deletions

View file

@ -3830,7 +3830,7 @@ fn print_const(cx: &DocContext, n: ty::LazyConst) -> String {
}
fn print_const_expr(cx: &DocContext, body: hir::BodyId) -> String {
cx.tcx.hir().node_to_pretty_string(body.node_id)
cx.tcx.hir().hir_to_pretty_string(body.hir_id)
}
/// Given a type Path, resolve it to a Type using the TyCtxt