about summary refs log tree commit diff
path: root/compiler/rustc_trait_selection/src/errors.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2023-02-21 01:19:25 +0000
committerbors <bors@rust-lang.org>2023-02-21 01:19:25 +0000
commit2deff71719a32af76eb4493ddb1dc4653fb88cad (patch)
tree40f0c67b323ffca820dd9ddeec89d864e7159591 /compiler/rustc_trait_selection/src/errors.rs
parent8f55d6025fec5fb648948fbe4fb6dcb4184c67bc (diff)
parent0847b79adaf209e9d174e315e3b49127643312c6 (diff)
downloadrust-2deff71719a32af76eb4493ddb1dc4653fb88cad.tar.gz
rust-2deff71719a32af76eb4493ddb1dc4653fb88cad.zip
Auto merge of #105462 - oli-obk:feeding_full, r=cjgillot,petrochenkov
give the resolver access to TyCtxt

The resolver is now created after TyCtxt is created. Then macro expansion and name resolution are run and the results fed into queries just like before this PR.

Since the resolver had (before this PR) mutable access to the `CStore` and the source span table, these two datastructures are now behind a `RwLock`. To ensure that these are not mutated anymore after the resolver is done, a read lock to them is leaked right after the resolver finishes.

### PRs split out of this one and leading up to it:

* https://github.com/rust-lang/rust/pull/105423
* https://github.com/rust-lang/rust/pull/105357
* https://github.com/rust-lang/rust/pull/105603
* https://github.com/rust-lang/rust/pull/106776
* https://github.com/rust-lang/rust/pull/106810
* https://github.com/rust-lang/rust/pull/106812
* https://github.com/rust-lang/rust/pull/108032
Diffstat (limited to 'compiler/rustc_trait_selection/src/errors.rs')
0 files changed, 0 insertions, 0 deletions