diff options
| author | bors <bors@rust-lang.org> | 2021-02-20 18:58:05 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2021-02-20 18:58:05 +0000 |
| commit | 83b30a639d5abd1270ade35d9bd92271f5a5ba18 (patch) | |
| tree | 8a38c51cce6a59c8d51f3b3dd5889462f07f0df5 /compiler/rustc_codegen_llvm/src | |
| parent | e7c23ab933ebc1f205c3b59f4ebc85d40f67d404 (diff) | |
| parent | 9823c2cc700fea541bf2670fcee93af662b63022 (diff) | |
| download | rust-83b30a639d5abd1270ade35d9bd92271f5a5ba18.tar.gz rust-83b30a639d5abd1270ade35d9bd92271f5a5ba18.zip | |
Auto merge of #70951 - cjgillot:anarchy, r=oli-obk
Move the query engine out of rustc_middle The handling of queries is moved to a trait `QueryEngine`. It replaces `query::Queries` in the `TyCtxt`, allowing to move the query engine out of librustc_middle. There are 2 modes to access the query engine: through `TyCtxt` and dynamic dispatch, or through a `QueryCtxt`. The `QueryCtxt` is required for everything touching the `OnDiskCache`. For now, I put it in librustc_incremental, which is very small. This may not be the best place. A significant part of the codegen time for librustc_middle is moved to the recipient crate. This PR may require a perf run. cc #65031 r? `@Zoxc`
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions
