]> git.lizzy.rs Git - rust.git/commit
rustc: Capture diagnostics from all queries
authorAlex Crichton <alex@alexcrichton.com>
Sat, 12 Aug 2017 22:37:28 +0000 (15:37 -0700)
committerAlex Crichton <alex@alexcrichton.com>
Thu, 24 Aug 2017 22:18:06 +0000 (15:18 -0700)
commit8e95b3a939d73e1bc0bd65b136dda3e5b2a23425
tree1e73744431d0bfce780c5d6edeede1557760511d
parent2c0558f635861533e2fcb4298ea93250cdfc2c58
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
src/librustc/ty/maps.rs
src/librustc_errors/diagnostic_builder.rs
src/librustc_errors/lib.rs