-
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
Move expr- and item-related pretty printing functions to modules #92920
Conversation
r? @cjgillot (rust-highfive has picked a reviewer for you, use r? to override) |
@bors r+ |
📌 Commit 94521b7 has been approved by |
Move expr- and item-related pretty printing functions to modules Currently *compiler/rustc_ast_pretty/src/pprust/state.rs* is 2976 lines on master. The `tidy` limit is 3000, which is blocking rust-lang#92243. This PR adds a `mod expr;` and `mod item;` to move logic related to those AST nodes out of the single huge file.
☔ The latest upstream changes (presumably #92970) made this pull request unmergeable. Please resolve the merge conflicts. |
|
@bors r=cjgillot |
📌 Commit 4556e91d43d019341bf7f3a47822a1a89ebe413c has been approved by |
☔ The latest upstream changes (presumably #92816) made this pull request unmergeable. Please resolve the merge conflicts. |
|
@bors r=cjgillot |
📌 Commit 6f8e03f22ab71140656c4895874e029a8b9a7361 has been approved by |
☔ The latest upstream changes (presumably #87648) made this pull request unmergeable. Please resolve the merge conflicts. |
|
@bors r=cjgillot |
📌 Commit 07a0325 has been approved by |
…askrgr Rollup of 10 pull requests Successful merges: - rust-lang#88642 (Formally implement let chains) - rust-lang#89621 (doc: guarantee call order for sort_by_cached_key) - rust-lang#91278 (Use iterator instead of recursion in `codegen_place`) - rust-lang#92124 (Little improves in CString `new` when creating from slice) - rust-lang#92783 (Annotate dead code lint with notes about ignored derived impls) - rust-lang#92797 (Remove horizontal lines at top of page) - rust-lang#92920 (Move expr- and item-related pretty printing functions to modules) - rust-lang#93041 (Remove some unused ordering derivations based on `DefId`) - rust-lang#93051 (Add Option::is_some_with and Result::is_{ok,err}_with) - rust-lang#93062 (Update books) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
Currently compiler/rustc_ast_pretty/src/pprust/state.rs is 2976 lines on master. The
tidy
limit is 3000, which is blocking #92243.This PR adds a
mod expr;
andmod item;
to move logic related to those AST nodes out of the single huge file.