]> git.lizzy.rs Git - rust.git/commit
Auto merge of #70204 - Centril:unshackled-lowering, r=Zoxc
authorbors <bors@rust-lang.org>
Mon, 23 Mar 2020 03:10:48 +0000 (03:10 +0000)
committerbors <bors@rust-lang.org>
Mon, 23 Mar 2020 03:10:48 +0000 (03:10 +0000)
commit37c945dd6178cb520eb1e450a795f8c3b3cc5a3b
tree2dbbb36335d426f3c13c4cde0eafaadfb7023968
parente4b01c7791446b2f79a1b1d517223378df2bf5f2
parent40cec7854b8422b47a7d917556694e3abbbb2d2e
Auto merge of #70204 - Centril:unshackled-lowering, r=Zoxc

Liberate `rustc_ast_lowering` from `rustc`

The whole point of this PR is the very last commit, in which we remove `rustc` as one of `rustc_ast_lowering`'s dependencies, thereby improving `./x.py` parallelism and working towards https://github.com/rust-lang/rust/issues/65031.

Noteworthy:
- From `rustc::arena` we move logic into `arena`, in particular `declare_arena!`. This is then used in `rustc_ast_lowering` so that lowering has its own separate arena.
- Some linting code is unfortunately moved to `rustc_session::lint` cause its used both in `rustc_lint` and `rustc_ast_lowering`, and this is their common dependency.
- `rustc_session::CrateDisambiguator` is moved into `rustc_ast` so that `rustc::hir::map::definitions` can be moved into `rustc_hir`, so that `rustc_ast_lowering` can stop referring to `rustc::hir`.

r? @Zoxc
src/librustc/hir/map/mod.rs