about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
diff options
context:
space:
mode:
authorYuki Okushi <jtitor@2k36.org>2022-02-03 22:20:25 +0900
committerGitHub <noreply@github.com>2022-02-03 22:20:25 +0900
commit761705ebe5093be5bcc8f431c56ed6a330ad34e7 (patch)
tree2e7109824683caac391ad377ff889f555758773e /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
parent2fe9f763d08cf493896262da0533fd1a3c8ae3dd (diff)
parent2d7ffbbc40cb8ddd85ed29ad88d217e10a17f8ac (diff)
downloadrust-761705ebe5093be5bcc8f431c56ed6a330ad34e7.tar.gz
rust-761705ebe5093be5bcc8f431c56ed6a330ad34e7.zip
Rollup merge of #93515 - dtolnay:convenience, r=davidtwco
Factor convenience functions out of main printer implementation

The pretty printer in rustc_ast_pretty has a section of methods commented "Convenience functions to talk to the printer". This PR pulls those out to a separate module. This leaves pp.rs with only the minimal API that is core to the pretty printing algorithm.

I found this separation to be helpful in https://github.com/dtolnay/prettyplease because it makes clear when changes are adding some fundamental new capability to the pretty printer algorithm vs just making it more convenient to call some already existing functionality.
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions