John Kåre Alsaker
7985c6f8ec
Rename check_privacy to check_private_in_public
2019-03-06 04:50:50 +01:00
John Kåre Alsaker
d5bb71c9f1
Split up privacy checking so privacy_access_levels only does computations required for AccessLevels
2019-03-06 04:47:03 +01:00
John Kåre Alsaker
23a51f91c9
Introduce rustc_interface and move some methods there
2019-02-28 19:30:31 +01:00
csmoe
ccfa5d6df8
replace &'tcx Substs with SubstsRef
2019-02-26 19:30:57 +08:00
Taiki Endo
871910a2c6
Use ? in some macros
2019-02-24 21:59:44 +09:00
Mazdak Farrokhzad
0431857770
Rollup merge of #58365 - Zoxc:task-status, r=michaelwoerister
...
Add an option to print the status of incremental tasks / dep nodes after running them
r? @michaelwoerister
2019-02-14 08:24:13 +01:00
Mazdak Farrokhzad
0bc8f6f3f4
Rollup merge of #58273 - taiki-e:rename-dependency, r=matthewjasper
...
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-13 04:37:04 +01:00
Taiki Endo
3216c7656a
Rename rustc_errors dependency in rust 2018 crates
2019-02-13 00:28:52 +09:00
John Kåre Alsaker
f0b15f6d6a
Add an option to print the status of incremental tasks / dep nodes after running them
2019-02-11 00:53:16 +01:00
Alexander Regueiro
c3e182cf43
rustc: doc comments
2019-02-10 23:42:32 +00:00
John Kåre Alsaker
34ec9a5942
Add a query type which is always marked as red if it runs
2019-02-08 04:28:32 +01:00
Mark Mansi
e957ed9d10
move librustc to 2018
2019-02-05 12:45:47 -06:00
John Kåre Alsaker
2a4eeba70f
Make impl_wf_check incremental
2019-01-29 21:10:34 +01:00
John Kåre Alsaker
975eb312ef
Use multiple threads by default. Limits tests to one thread. Do some renaming.
2019-01-28 16:24:33 +01:00
Simonas Kazlauskas
f38d0da893
Implement optimize(size) and optimize(speed)
2019-01-24 20:13:50 +02:00
John Kåre Alsaker
b2dfd9680d
Fix race condition when emitting stored diagnostics
2019-01-23 16:20:57 +01:00
bors
c87144f3ca
Auto merge of #57752 - Centril:rollup, r=Centril
...
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-19 10:27:59 +00:00
Mazdak Farrokhzad
c7686b787f
Rollup merge of #57698 - michaelwoerister:issue57692, r=Zoxc
...
Fix typo bug in DepGraph::try_mark_green().
r? @Zoxc
Fixes #57692 .
2019-01-19 09:03:33 +01:00
Mazdak Farrokhzad
64eb69b904
Rollup merge of #57573 - Xanewok:querify-entry-fn, r=Zoxc
...
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-19 09:03:27 +01:00
Mazdak Farrokhzad
c0ad9429ab
Rollup merge of #57476 - Xanewok:bye-crate-analysis, r=Zoxc
...
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-19 09:03:24 +01:00
bors
1bc6baec76
Auto merge of #57253 - Zoxc:incr-passes2, r=michaelwoerister
...
Make privacy checking, intrinsic checking and liveness checking incremental
Blocked on https://github.com/rust-lang/rust/pull/51487
r? @michaelwoerister
2019-01-19 07:42:43 +00:00
Michael Woerister
3884cc8df4
Fix typo bug in DepGraph::try_mark_green().
2019-01-17 15:32:05 +01:00
Igor Matuszewski
6f1d06d219
Querify glob map usage (last use of CrateAnalysis)
2019-01-17 10:40:22 +01:00
Igor Matuszewski
ff19a53ef0
Querify entry_fn
2019-01-15 11:10:51 +01:00
John Kåre Alsaker
1313678784
Address comments
2019-01-15 10:39:49 +01:00
John Kåre Alsaker
8ef7413f23
Optimize try_mark_green and eliminate the lock on dep node colors
2019-01-15 10:39:49 +01:00
John Kåre Alsaker
e459000bc1
Make privacy checking, intrinsic checking and liveness checking incremental
2019-01-15 00:55:21 +01:00
bors
9aee7ed335
Auto merge of #57580 - Centril:rollup, r=Centril
...
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-13 22:20:43 +00:00
John Kåre Alsaker
69d18a3986
Make more passes incremental
2019-01-11 03:53:29 +01:00
John Kåre Alsaker
f21c08439a
Move diagnostics out from QueryJob and optimize for the case with no diagnostics
2019-01-08 18:50:43 +01:00
bors
b8c8f0bdf6
Auto merge of #57114 - Zoxc:query-perf11, r=michaelwoerister
...
Clean up and optimize OpenTask / read_index
r? @michaelwoerister
2019-01-08 14:11:19 +00:00
Ariel Ben-Yehuda
0b511b7bd2
implement a hack to make traitobject 0.1.0 compile
2019-01-04 01:50:35 +02:00
John Kåre Alsaker
584a52096e
Clean up and optimize OpenTask / read_index
2018-12-31 16:24:22 +01:00
John Kåre Alsaker
2738f2c891
Address comments
2018-12-31 09:16:06 +01:00
John Kåre Alsaker
18d6b37f2c
Use entry API to avoid double lookup when interning dep nodes
2018-12-31 09:16:02 +01:00
John Kåre Alsaker
a426d47f58
Group dep node data into a single structure
2018-12-31 09:15:58 +01:00
scalexm
ba6314a0d6
Integrate chalk engine
2018-12-27 19:21:16 +01:00
Mark Rousskov
2a663555dd
Remove licenses
2018-12-25 21:08:33 -07:00
bors
daa8792f17
Auto merge of #54252 - arielb1:deref-query, r=nikomatsakis
...
process nested obligations in autoderef
Fixes #53843 .
r? @nikomatsakis
2018-12-19 22:51:39 +00:00
John Kåre Alsaker
5a6a133f7e
Remove *_inlined variants
2018-12-17 08:53:02 +01:00
John Kåre Alsaker
8e53ecff6c
Turn some asserts into debug_asserts
2018-12-17 08:53:01 +01:00
John Kåre Alsaker
c66b84457f
Tweak query code for performance
2018-12-17 08:53:01 +01:00
Ariel Ben-Yehuda
e25e2e0600
make autoderef steps a query
2018-12-15 00:41:28 +02:00
Alexander Regueiro
ee89c088b0
Various minor/cosmetic improvements to code
2018-12-07 23:53:34 +00:00
John Kåre Alsaker
a70babed03
Use a function to access the Hir map to be able to turn it into a query later
2018-12-06 17:24:36 +01:00
ljedrz
d0c64bb296
cleanup: remove static lifetimes from consts
2018-12-04 12:46:10 +01:00
Eduard-Mihai Burtescu
e305994beb
proc_macro: introduce a "bridge" between clients (proc macros) and servers (compiler front-ends).
2018-11-30 06:15:19 +02:00
Mark Mansi
6494f1e60e
rustc-guide has moved
2018-11-26 15:03:13 -06:00
Eduard-Mihai Burtescu
7683180be5
rustc: implement and use Default on more types.
2018-11-21 08:11:50 +02:00
Pietro Albini
66fcb3ceb2
Rollup merge of #55901 - euclio:speling, r=petrochenkov
...
fix various typos in doc comments
2018-11-15 11:04:42 +01:00