about summary refs log tree commit diff
path: root/src/liballoc/string.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2017-06-15 06:52:42 +0000
committerbors <bors@rust-lang.org>2017-06-15 06:52:42 +0000
commit119066ff2bb39f7c8f7d1e68b7ad15e026f048e2 (patch)
treeb5bf1dd466b6faa4a4522dd13b186c0379a4f2fc /src/liballoc/string.rs
parent0189cec5d4e782ca17dd510934e93a7bd327ba86 (diff)
parente32365272872d9bd69dd3f89113f2a47158960c5 (diff)
downloadrust-119066ff2bb39f7c8f7d1e68b7ad15e026f048e2.tar.gz
rust-119066ff2bb39f7c8f7d1e68b7ad15e026f048e2.zip
Auto merge of #42625 - michaelwoerister:dep-node-debug, r=nikomatsakis
incr.comp.: Make DepNode's std::fmt::Debug implementation useful again.

With #42537 a regular `DepNode` only contains an opaque hash as its identifier. In most cases, this hash is actually a `DefPathHash` and we can reconstruct the `DefId` it came from via a table lookup --- and then use that to print something intelligible for debug outputs. For cases where we cannot reconstruct information from the DepNode's hash, this PR will cache a string representation of the `DepNode` in a side-table. This string is later used for debug outputs.

r? @nikomatsakis
Diffstat (limited to 'src/liballoc/string.rs')
0 files changed, 0 insertions, 0 deletions