Uh oh!
There was an error while loading. Please reload this page.
rustc: Capture diagnostics from all queries - #44046
Conversation
rust-highfive
commented
Aug 22, 2017
(rust_highfive has picked a reviewer for you, use r? to override) |
alexcrichton
commented
Aug 22, 2017
This doesn't currently include any tests as I wasn't quite sure how to test it, but if you know how/where to add tests I'd be more than happy to do so! Otherwise I just noticed #41184 so I'm not sure if this is quite amenable to such construction, but figure it was at least likely a step in the right direction. |
michaelwoerister
commented
Aug 23, 2017
Thanks, @alexcrichton! Looks good to me at a first glance. Have you done any measurements on how this affects memory consumption? We are potentially storing a lot of these query results, also in non-incremental mode, so it might make sense to optimize for the "no-diagnostics" case. But I'd measure first. |
86ed712 to
79ebc10Comparealexcrichton
commented
Aug 23, 2017
Oh good point! I tried to measure a bit but the one test case I used said this decreased memory usage wrt the most recent nightly, so I figured it wasn't really much effort to go ahead and optimize the representation so I've now done so. |
michaelwoerister
commented
Aug 23, 2017
@bors r+ Looks good to me now! Thanks! |
bors
commented
Aug 23, 2017
📌 Commit 79ebc10 has been approved by |
bors
commented
Aug 24, 2017
☔ The latest upstream changes (presumably #43345) made this pull request unmergeable. Please resolve the merge conflicts. |
This commit alters the `rustc::ty::maps` implementation to ensure that all output diagnostics from the compiler are tracked for the duration of each query. These are then intended to be replayed back the first time a cached value is loaded, and otherwise the cache should operate the same as it does today. Closesrust-lang#42513
79ebc10 to
8e95b3aComparealexcrichton
commented
Aug 24, 2017
@bors: r=michaelwoerister |
bors
commented
Aug 24, 2017
📌 Commit 8e95b3a has been approved by |
bors
commented
Aug 25, 2017
⌛ Testing commit 8e95b3a with merge ccb1cb25a8c8134685167205b866f830d484e633... |
bors
commented
Aug 25, 2017
💔 Test failed - status-travis |
kennytm
commented
Aug 25, 2017
@bors retry
Details |
Perhaps a real failure: |
bors
commented
Aug 25, 2017
…rister rustc: Capture diagnostics from all queries This commit alters the `rustc::ty::maps` implementation to ensure that all output diagnostics from the compiler are tracked for the duration of each query. These are then intended to be replayed back the first time a cached value is loaded, and otherwise the cache should operate the same as it does today. Closes#42513
bors
commented
Aug 25, 2017
☀️ Test successful - status-appveyor, status-travis |
This commit alters the
rustc::ty::mapsimplementation to ensure that alloutput diagnostics from the compiler are tracked for the duration of each query.
These are then intended to be replayed back the first time a cached value is
loaded, and otherwise the cache should operate the same as it does today.
Closes#42513