]> git.lizzy.rs Git - rust.git/commit - src/tools/rustfmt
Auto merge of #65240 - michaelwoerister:sp-review-3, r=Mark-Simulacrum
authorbors <bors@rust-lang.org>
Mon, 14 Oct 2019 01:45:26 +0000 (01:45 +0000)
committerbors <bors@rust-lang.org>
Mon, 14 Oct 2019 01:45:26 +0000 (01:45 +0000)
commitd28a9c38fe14396e86ae274c7847e20ee0f78ca9
tree16203e08715bb94fab326e6842bf10cdcd065676
parent36d4506cc64337bf7dfc1e3120156922e97659c7
parenta9853fce25723cbcb96380c3881fadb234530410
Auto merge of #65240 - michaelwoerister:sp-review-3, r=Mark-Simulacrum

self-profiling: Add events for metadata loading (plus a small dep-tracking optimization)

This PR
- adds self-profiling events related to loading things from crate metadata
- makes the compiler cache the `DepNodeIndex` of upstream crates, so that they don't have to be looked up over and over.

The commits are best reviewed in isolation.

Self-profiling tracking issue: https://github.com/rust-lang/rust/issues/58967

r? @Mark-Simulacrum
cc @wesleywiser
src/librustc/dep_graph/graph.rs
src/librustc_metadata/cstore_impl.rs
src/librustc_metadata/decoder.rs