about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2021-12-08 16:08:09 +0100
committerGitHub <noreply@github.com>2021-12-08 16:08:09 +0100
commit1be98af02fae15c6b398b7253a9313e189ff54c7 (patch)
treee78c30fc5ac546e542017bc853ea77741b136c95 /compiler/rustc_codegen_llvm/src
parent67c58327fc6c15ad7e8e15a05c8ff2314cd7ca96 (diff)
parenta79b702956e24aca5857a0630e9ff4f2e257a713 (diff)
downloadrust-1be98af02fae15c6b398b7253a9313e189ff54c7.tar.gz
rust-1be98af02fae15c6b398b7253a9313e189ff54c7.zip
Rollup merge of #91571 - dtolnay:printerderef, r=Mark-Simulacrum
Remove unneeded access to pretty printer's `s` field in favor of deref

I found it taxing in some of my recent PRs touching the pretty printer to maintain consistency with the surrounding code, since the current code is all over the place about whether it uses `self.s.…()` or `self.…()` for invoking methods of `rustc_ast_pretty::pp::Printer`.

This PR standardizes on `self.…()` &mdash; relying on the `Deref` and `DerefMut` impls introduced by [#62532](https://github.com/rust-lang/rust/pull/62532/commits/cab453250a3ceae5cf0cf7eac836c03b37e4ca8e).
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions