Skip to content

Commit

Permalink
Rollup merge of rust-lang#92920 - dtolnay:printtidy, r=cjgillot
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
matthiaskrgr committed Jan 15, 2022
2 parents 47df44d + 94521b7 commit b289c7c
Show file tree
Hide file tree
Showing 3 changed files with 1,276 additions and 1,256 deletions.
Loading

0 comments on commit b289c7c

Please sign in to comment.