about summary refs log tree commit diff
path: root/src/librustc/dep_graph
AgeCommit message (Collapse)AuthorLines
2019-04-15Reduce the `DepNode` pre-allocation ratio.Nicholas Nethercote-2/+3
A code size of increase of 15% is overly generous. 2% is more realistic. This change reduces peak memory size by 20+ MiB on some workloads.
2019-03-30Move query definitions over to the proc macroJohn Kåre Alsaker-202/+9
2019-03-29rustc(codegen): uncache `def_symbol_name` prefix from `symbol_name`.Eduard-Mihai Burtescu-2/+1
2019-03-28Rollup merge of #59091 - Zoxc:eval_always, r=michaelwoeristerMazdak Farrokhzad-81/+38
Combine input and eval_always query types Hardcoding `Krate` as a dependency of `eval_always` queries doesn't really make sense if we want to use the query system before HIR lowering / hashing. Without that hardcoding they become pretty much identical to `input` queries, so I combined them to a single type. This will regress the `clean` incremental scenario, but that isn't terribly common. r? @michaelwoerister
2019-03-27Rollup merge of #57293 - Zoxc:incr-passes3, r=michaelwoeristerJosh Stone-0/+1
Make some lints incremental Blocked on https://github.com/rust-lang/rust/pull/57253 r? @michaelwoerister
2019-03-26Make crate_variances a regular queryJohn Kåre Alsaker-1/+1
2019-03-26Combine input and eval_always query typesJohn Kåre Alsaker-80/+37
2019-03-25Make some lints incrementalJohn Kåre Alsaker-0/+1
2019-03-20Add eval_always to query macro and move a query overJohn Kåre Alsaker-1/+0
2019-03-20Add anon to query macro and move a query overJohn Kåre Alsaker-8/+0
2019-03-20Add no_force to query macro and move some queries overJohn Kåre Alsaker-4/+0
2019-03-20Add no_hash to query macro and move some queries overJohn Kåre Alsaker-6/+0
2019-03-18Add load_cached query modifier and keep dep node names consistent with query ↵John Kåre Alsaker-2/+0
names
2019-03-18Define queries using a proc macroJohn Kåre Alsaker-6/+19
2019-03-15rustc: rename item_path to def_path (except the module in ty).Eduard-Mihai Burtescu-2/+2
2019-03-06Rename check_privacy to check_private_in_publicJohn Kåre Alsaker-1/+1
2019-03-06Split up privacy checking so privacy_access_levels only does computations ↵John Kåre Alsaker-0/+1
required for AccessLevels
2019-02-28Introduce rustc_interface and move some methods thereJohn Kåre Alsaker-0/+1
2019-02-26replace &'tcx Substs with SubstsRefcsmoe-2/+2
2019-02-24Use ? in some macrosTaiki Endo-1/+1
2019-02-14Rollup merge of #58365 - Zoxc:task-status, r=michaelwoeristerMazdak Farrokhzad-0/+15
Add an option to print the status of incremental tasks / dep nodes after running them r? @michaelwoerister
2019-02-13Rollup merge of #58273 - taiki-e:rename-dependency, r=matthewjasperMazdak Farrokhzad-1/+1
Rename rustc_errors dependency in rust 2018 crates I think this is a better solution than `use rustc_errors as errors` in `lib.rs` and `use crate::errors` in modules. Related: rust-lang/cargo#5653 cc #58099 r? @Centril
2019-02-13Rename rustc_errors dependency in rust 2018 cratesTaiki Endo-1/+1
2019-02-11Add an option to print the status of incremental tasks / dep nodes after ↵John Kåre Alsaker-0/+15
running them
2019-02-10rustc: doc commentsAlexander Regueiro-28/+28
2019-02-08Add a query type which is always marked as red if it runsJohn Kåre Alsaker-36/+55
2019-02-05move librustc to 2018Mark Mansi-24/+24
2019-01-29Make impl_wf_check incrementalJohn Kåre Alsaker-0/+1
2019-01-28Use multiple threads by default. Limits tests to one thread. Do some renaming.John Kåre Alsaker-4/+4
2019-01-24Implement optimize(size) and optimize(speed)Simonas Kazlauskas-0/+1
2019-01-23Fix race condition when emitting stored diagnosticsJohn Kåre Alsaker-21/+63
2019-01-19Auto merge of #57752 - Centril:rollup, r=Centrilbors-1/+3
Rollup of 10 pull requests Successful merges: - #57268 (Add a target option "merge-functions", and a corresponding -Z flag (works around #57356)) - #57476 (Move glob map use to query and get rid of CrateAnalysis) - #57501 (High priority resolutions for associated variants) - #57573 (Querify `entry_fn`) - #57610 (Fix nested `?` matchers) - #57634 (Remove an unused function argument) - #57653 (Make the contribution doc reference the guide more) - #57666 (Generalize `huge-enum.rs` test and expected stderr for more cross platform cases) - #57698 (Fix typo bug in DepGraph::try_mark_green().) - #57746 (Update README.md) Failed merges: r? @ghost
2019-01-19Rollup merge of #57698 - michaelwoerister:issue57692, r=ZoxcMazdak Farrokhzad-1/+1
Fix typo bug in DepGraph::try_mark_green(). r? @Zoxc Fixes #57692.
2019-01-19Rollup merge of #57573 - Xanewok:querify-entry-fn, r=ZoxcMazdak Farrokhzad-0/+1
Querify `entry_fn` Analogous to https://github.com/rust-lang/rust/pull/57570 but this will also require few fixups in Miri so I decided to separate that (and it seems [CI doesn't let us break tools anymore](https://github.com/rust-lang/rust/pull/57392#issuecomment-453801540)? Or was that because it was a rollup PR?) r? @nikomatsakis
2019-01-19Rollup merge of #57476 - Xanewok:bye-crate-analysis, r=ZoxcMazdak Farrokhzad-0/+1
Move glob map use to query and get rid of CrateAnalysis ~Also includes commits from ~https://github.com/rust-lang/rust/pull/57392~ and ~https://github.com/rust-lang/rust/pull/57436~.~ With glob map calculated unconditionally in https://github.com/rust-lang/rust/pull/57392, this PR moves the calculated glob map to `GlobalCtxt` and exposes a relevant query (as we do with other queries which copy precomputed data over from the `Resolver`). This allows us to get rid of the `CrateAnalysis` struct in an attempt to simplify the compiler interface. cc @Zoxc r? @nikomatsakis @Zoxc @petrochenkov
2019-01-19Auto merge of #57253 - Zoxc:incr-passes2, r=michaelwoeristerbors-0/+3
Make privacy checking, intrinsic checking and liveness checking incremental Blocked on https://github.com/rust-lang/rust/pull/51487 r? @michaelwoerister
2019-01-17Fix typo bug in DepGraph::try_mark_green().Michael Woerister-1/+1
2019-01-17Querify glob map usage (last use of CrateAnalysis)Igor Matuszewski-0/+1
2019-01-15Querify entry_fnIgor Matuszewski-0/+1
2019-01-15Address commentsJohn Kåre Alsaker-4/+7
2019-01-15Optimize try_mark_green and eliminate the lock on dep node colorsJohn Kåre Alsaker-74/+104
2019-01-15Make privacy checking, intrinsic checking and liveness checking incrementalJohn Kåre Alsaker-0/+3
2019-01-13Auto merge of #57580 - Centril:rollup, r=Centrilbors-1/+1
Rollup of 4 pull requests Successful merges: - #56874 (Simplify foreign type rendering.) - #57113 (Move diagnostics out from QueryJob and optimize for the case with no diagnostics) - #57366 (Point at match discriminant on type error in match arm pattern) - #57538 (librustc_mir: Fix ICE with slice patterns) Failed merges: - #57381 (Tweak output of type mismatch between "then" and `else` `if` arms) r? @ghost
2019-01-11Make more passes incrementalJohn Kåre Alsaker-0/+6
2019-01-08Move diagnostics out from QueryJob and optimize for the case with no diagnosticsJohn Kåre Alsaker-1/+1
2019-01-08Auto merge of #57114 - Zoxc:query-perf11, r=michaelwoeristerbors-162/+120
Clean up and optimize OpenTask / read_index r? @michaelwoerister
2019-01-04implement a hack to make traitobject 0.1.0 compileAriel Ben-Yehuda-0/+1
2018-12-31Clean up and optimize OpenTask / read_indexJohn Kåre Alsaker-162/+120
2018-12-31Address commentsJohn Kåre Alsaker-3/+7
2018-12-31Use `entry` API to avoid double lookup when interning dep nodesJohn Kåre Alsaker-30/+39