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.…()` — relying on the `Deref` and `DerefMut` impls introduced by [#62532](cab453250a).
This commit is contained in:
Matthias Krüger 2021-12-08 16:08:09 +01:00 committed by GitHub
commit 1be98af02f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 342 additions and 342 deletions

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff