Skip to content

Commit

Permalink
Rollup merge of rust-lang#91571 - dtolnay:printerderef, r=Mark-Simula…
Browse files Browse the repository at this point in the history
…crum

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 [rust-lang#62532](rust-lang@cab4532).
  • Loading branch information
matthiaskrgr committed Dec 8, 2021
2 parents 67c5832 + a79b702 commit 1be98af
Show file tree
Hide file tree
Showing 2 changed files with 342 additions and 342 deletions.
Loading

0 comments on commit 1be98af

Please sign in to comment.