diff options
| author | bors <bors@rust-lang.org> | 2020-08-03 01:50:25 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2020-08-03 01:50:25 +0000 |
| commit | 8244b1b11488a336a485f07fd6550b973009a931 (patch) | |
| tree | 307670f0bf7e597851c126bfb3fbf06a20c019fd /src/test/rustdoc-ui/coverage/doc-examples.rs | |
| parent | 19ecce332e56941ea0dd2a805270faa102acdb14 (diff) | |
| parent | 8c78fd234be2b3adfeda8748379370e5b8433ce3 (diff) | |
| download | rust-8244b1b11488a336a485f07fd6550b973009a931.tar.gz rust-8244b1b11488a336a485f07fd6550b973009a931.zip | |
Auto merge of #74969 - nnethercote:rm-GCX_PTR, r=Mark-Simulacrum
Remove `GCX_PTR`. We store an `ImplicitCtxt` pointer in a thread-local value (TLV). This allows implicit access to a `GlobalCtxt` and some other things. We also store a `GlobalCtxt` pointer in `GCX_PTR`. This is always the same `GlobalCtxt` as the one within the `ImplicitCtxt` pointer in TLV. `GCX_PTR` is only used in the parallel compiler's `handle_deadlock()` function. This commit does the following. - It removes `GCX_PTR`. - It also adds `ImplicitCtxt::new()`, which constructs an `ImplicitCtxt` from a `GlobalCtxt`. `ImplicitCtxt::new()` + `tls::enter_context()` is now equivalent to the old `tls::enter_global()`. - Makes `tls::get_tlv()` public for the parallel compiler, because it's now used in `handle_deadlock()`. r? @petrochenkov
Diffstat (limited to 'src/test/rustdoc-ui/coverage/doc-examples.rs')
0 files changed, 0 insertions, 0 deletions
