Aaron Hill
7e5a88a56c
Combine individual limit queries into single limits query
2021-07-04 13:02:51 -05:00
bors
7100b311df
Auto merge of #86749 - bjorn3:link_info_refactor_part1, r=petrochenkov
...
Rename all_crate_nums query to crates and remove useless wrapper
Split out of https://github.com/rust-lang/rust/pull/86105
r? `@petrochenkov`
2021-07-01 19:00:08 +00:00
bjorn3
c7d2099de0
Rename all_crate_nums query to crates and remove useless wrapper
2021-07-01 16:51:11 +02:00
bors
868c702d0c
Auto merge of #86695 - sexxi-goose:closure_size, r=nikomatsakis
...
Introduce -Zprofile-closures to evaluate the impact of 2229
This creates a CSV with name "closure_profile_XXXXX.csv", where the
variable part is the process id of the compiler.
To profile a cargo project you can run one of the following depending on
if you're compiling a library or a binary:
```
cargo +nightly rustc --lib -- -Zprofile-closures
cargo +nightly rustc --bin {binary_name} -- -Zprofile-closures
```
r? `@nikomatsakis`
2021-06-30 13:42:50 +00:00
bors
e98897e5dc
Auto merge of #86475 - crlf0710:miri_vtable_refactor, r=bjorn3
...
Change vtable memory representation to use tcx allocated allocations.
This fixes https://github.com/rust-lang/rust/issues/86324 . However i suspect there's more to change before it can land.
r? `@bjorn3`
cc `@rust-lang/miri`
2021-06-29 15:52:21 +00:00
Aman Arora
fc273e9bf2
Introduce -Zprofile-closures to evaluate the impact of 2229
...
This creates a CSV with name "closure_profile_XXXXX.csv", where the
variable part is the process id of the compiler.
To profile a cargo project you can run one of the following depending on
if you're compiling a library or a binary:
```
cargo +stage1 rustc --lib -- -Zprofile-closures
cargo +stage1 rustc --bin -- -Zprofile-closures
```
2021-06-28 14:21:55 -04:00
Charles Lew
d3ff497bec
Update other codegens to use tcx managed vtable allocations.
2021-06-28 19:39:48 +08:00
bors
345530412f
Auto merge of #85909 - cjgillot:alloc-kind-query, r=Aaron1011
...
Make allocator_kind a query.
Part of #85153
r? `@Aaron1011`
2021-06-28 01:20:01 +00:00
Yuki Okushi
9323a2824b
Prefer "allow list" structure to check a type
2021-06-24 15:02:50 +09:00
Yuki Okushi
462c74007e
Rename function name in comments
2021-06-24 14:21:50 +09:00
Yuki Okushi
a141d29612
Do not panic in return_type_impl_trait
2021-06-24 14:06:28 +09:00
Camille GILLOT
cbdfbdd40b
Implement the query in cstore_impl.
2021-06-20 11:58:46 +02:00
Camille GILLOT
6a371d2c89
Make allocator_kind a query.
2021-06-20 11:52:51 +02:00
Niko Matsakis
f6adaedd9b
add various coments to explain how the code works
2021-06-18 11:44:56 -04:00
bors
b17d9c1332
Auto merge of #85834 - cjgillot:save-sbi, r=michaelwoerister
...
Encode CrateNum using the StableCrateId for incr. comp.
2021-06-17 09:03:58 +00:00
bors
1639a16ebf
Auto merge of #85910 - cjgillot:no-meta-version, r=Aaron1011
...
Drop metadata_encoding_version.
Part of #85153
r? `@Aaron1011`
2021-06-10 00:39:25 +00:00
Camille GILLOT
f387cffadb
Access stable_crate_id directly.
2021-06-09 20:25:39 +02:00
bors
c4b5406981
Auto merge of #86118 - spastorino:tait-soundness-bug, r=nikomatsakis
...
Create different inference variables for different defining uses of TAITs
Fixes #73481
r? `@nikomatsakis`
cc `@oli-obk`
2021-06-09 09:00:16 +00:00
Santiago Pastorino
7294f49d52
Remove ResolvedOpaqueTy and just use Ty, SubstsRef is already there
2021-06-07 19:07:07 -03:00
Santiago Pastorino
7f8cad2019
Make OpaqueTypeKey the key of opaque types map
2021-06-07 19:04:52 -03:00
Santiago Pastorino
3405725e00
Change concrete opaque type to be a VecMap
2021-06-07 19:04:19 -03:00
bjorn3
8176ab8bc1
Revert "Merge CrateDisambiguator into StableCrateId"
...
This reverts commit d0ec85d3fb .
2021-06-07 10:37:45 +02:00
Yuki Okushi
a5466fc5ad
Rollup merge of #85911 - cjgillot:one-output, r=Aaron1011
...
Avoid a clone of output_filenames.
Part of #85153
2021-06-03 14:35:39 +09:00
Camille GILLOT
0e71283495
Restrict access to crate_name.
...
Also remove original_crate_name, which had the exact same implementation
2021-06-02 18:35:32 +02:00
bors
7350f655ef
Auto merge of #85908 - cjgillot:private-dep-query, r=Aaron1011
...
Make is_private_dep a query.
Part of #85153
r? `@Aaron1011`
2021-06-02 08:06:45 +00:00
Camille GILLOT
ba0ac88cd5
Avoid a clone of output_filenames.
2021-06-01 21:22:55 +02:00
Camille GILLOT
202d39a96b
Drop metadata_encoding_version.
2021-06-01 21:12:27 +02:00
Camille GILLOT
28afaeec17
Make is_private_dep a query.
2021-06-01 21:03:55 +02:00
Camille GILLOT
273778086c
Remove StableVec.
2021-06-01 20:53:04 +02:00
Camille GILLOT
e291be3649
Only compute the trait_map once.
2021-06-01 20:43:50 +02:00
Camille Gillot
0f0f3138cb
Revert "Reduce the amount of untracked state in TyCtxt"
2021-06-01 09:05:22 +02:00
Camille GILLOT
2543028161
Drop metadata_encoding_version.
2021-05-30 20:05:46 +02:00
Camille GILLOT
1119b48e02
Correct comments about untracked accesses.
2021-05-30 20:04:37 +02:00
Camille GILLOT
f0e5e22806
Make is_private_dep a query.
2021-05-30 20:04:22 +02:00
Camille GILLOT
ee94fbb607
Make allocator_kind a query.
2021-05-30 19:58:01 +02:00
Camille GILLOT
e1e6949558
Avoid a clone of output_filenames.
2021-05-30 19:57:13 +02:00
Camille GILLOT
ee567fe1b1
Remove StableVec.
2021-05-30 19:54:21 +02:00
Camille GILLOT
10fb4b2fe5
Restrict access to crate_name.
...
Also remove original_crate_name, which had the exact same implementation
2021-05-30 19:54:04 +02:00
Camille GILLOT
5d9f96ab27
Make resolutions a query.
2021-05-30 19:47:00 +02:00
Camille GILLOT
139f7ad637
Only compute the trait_map once.
2021-05-30 19:37:53 +02:00
bjorn3
d0ec85d3fb
Merge CrateDisambiguator into StableCrateId
2021-05-30 12:51:34 +02:00
bors
d568d63b1f
Auto merge of #85273 - LeSeulArtichaut:thir-query, r=nikomatsakis
...
Make building THIR a stealable query
This PR creates a stealable `thir_body` query so that we can build the THIR only once for THIR unsafeck and MIR build.
Blocked on #83842 .
r? `@nikomatsakis`
2021-05-25 03:07:03 +00:00
Ralf Jung
585141b219
support creating mutable allocations from byte slices
2021-05-23 12:37:16 +02:00
LeSeulArtichaut
6f64eb1fe6
Make THIR building a stealable query
2021-05-22 14:36:22 +02:00
Camille GILLOT
1fb9cad50a
Use () for analysis.
2021-05-12 14:01:16 +02:00
Camille GILLOT
0bde3b1f80
Use () for codegen queries.
2021-05-12 13:58:46 +02:00
Camille GILLOT
437a46ddfa
Use () for lang items.
2021-05-12 13:58:45 +02:00
Camille GILLOT
9d15abe0cc
Use () for lint_levels.
2021-05-12 13:58:43 +02:00
bors
ac923d94f8
Auto merge of #83610 - bjorn3:driver_cleanup, r=cjgillot
...
rustc_driver cleanup
Best reviewed one commit at a time.
2021-05-12 08:38:03 +00:00
b-naber
e4d9bc66f6
improve diagnosts for GATs
2021-05-11 14:09:46 +02:00