-
Notifications
You must be signed in to change notification settings - Fork 12.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Extract rustc_ast_lowering
crate from rustc
#67574
Conversation
I would have tried doing the other way around: moving the HIR definition along with the lowering, as a librustc dependency. |
@cjgillot HIR is more entangled into librustc so it will take more work (which I am aiming for in a follow up). But HIR and lowering should, much like the AST and the parser, not be in the same crate. |
@bors r+ |
📌 Commit 81b2c247b0c107b1a861b9adfe2ef4731ae8072c has been approved by |
⌛ Testing commit 81b2c247b0c107b1a861b9adfe2ef4731ae8072c with merge c3db61f9bba900a5fccf9a5e4c261b8e1b515de0... |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
+1 (Also, for some reason I thought the PR was already merged.) |
81b2c24
to
70eca99
Compare
rustc_lowering
crate from rustc
rustc_ast_lowering
crate from rustc
@bors r=Mark-Simulacrum |
This comment has been minimized.
This comment has been minimized.
📌 Commit 70eca99 has been approved by |
…imulacrum Extract `rustc_ast_lowering` crate from `rustc` Working towards rust-lang#65031. This PR moves `src/librustc/hir/lowering{/, .rs}` to its own crate (`librustc_ast_lowering`) which is very self-contained (only `fn lower_crate` and `trait Resolver` are exposed). r? @Mark-Simulacrum
Rollup of 6 pull requests Successful merges: - #67574 (Extract `rustc_ast_lowering` crate from `rustc`) - #67685 (Constify Result) - #67702 (Add symbol normalization for proc_macro_server.) - #67730 (Cleanup pattern type checking, fix diagnostics bugs (+ improvements)) - #67744 (parser: reduce diversity in error handling mechanisms) - #67748 (Use function attribute "frame-pointer" instead of "no-frame-pointer-elim") Failed merges: r? @ghost
Working towards #65031.
This PR moves
src/librustc/hir/lowering{/, .rs}
to its own crate (librustc_ast_lowering
) which is very self-contained (onlyfn lower_crate
andtrait Resolver
are exposed).r? @Mark-Simulacrum