Skip to content

Commit

Permalink
Auto merge of #105462 - oli-obk:feeding_full, r=cjgillot,petrochenkov
Browse files Browse the repository at this point in the history
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:

* rust-lang/rust#105423
* rust-lang/rust#105357
* rust-lang/rust#105603
* rust-lang/rust#106776
* rust-lang/rust#106810
* rust-lang/rust#106812
* rust-lang/rust#108032
  • Loading branch information
bors committed Feb 21, 2023
2 parents c008c9c + 76f9760 commit 72c8cc9
Showing 0 changed files with 0 additions and 0 deletions.

0 comments on commit 72c8cc9

Please sign in to comment.