]> git.lizzy.rs Git - rust.git/commit
Auto merge of #47087 - Zoxc:incr_no_in_ignore, r=michaelwoerister
authorbors <bors@rust-lang.org>
Thu, 11 Jan 2018 03:24:16 +0000 (03:24 +0000)
committerbors <bors@rust-lang.org>
Thu, 11 Jan 2018 03:24:16 +0000 (03:24 +0000)
commit619ced057842a25f8700237a9c22a6f5c318a954
tree83d10e1074e1c353c6c508270754d20e52f5a055
parentc9c29807362b52dcf8e7736e0925233c2526aa18
parent95089224993616ad1d976a4a5586c3f8f9f159ad
Auto merge of #47087 - Zoxc:incr_no_in_ignore, r=michaelwoerister

Replace uses of DepGraph.in_ignore with DepGraph.with_ignore

I currently plan to track tasks in thread local storage. Ignoring things in a closure ensures that the ignore tasks do not overlap the beginning or end of any other task. The TLS API will also use a closure to change a TLS value, so having the ignore task be a closure also helps there.

It also adds `assert_ignored` which is used before a `TyCtxt` is created. Instead of adding a new ignore task this simply ensures that we are in a context where reads are ignored.

r? @michaelwoerister
src/librustc/ty/maps/on_disk_cache.rs
src/librustc_metadata/encoder.rs
src/librustc_trans/assert_module_sources.rs