rust/compiler/rustc_ast_pretty/src
Eric Huss 81c515bf77
Rollup merge of #92336 - dtolnay:printstateself, r=michaelwoerister
Remove &self from PrintState::to_string

The point of `PrintState::to_string` is to create a `State` and evaluate the caller's closure on it:

e9fbe79292/compiler/rustc_ast_pretty/src/pprust/state.rs (L868-L872)

Making the caller *also* construct and pass in a `State`, which is then ignored, was confusing.
2022-01-07 20:20:56 -08:00
..
pprust Rollup merge of #92336 - dtolnay:printstateself, r=michaelwoerister 2022-01-07 20:20:56 -08:00
helpers.rs Delete duplicated helpers from HIR printer 2021-12-05 12:45:51 -08:00
lib.rs remove cfg(bootstrap) 2021-05-24 11:07:48 -04:00
pp.rs Add missing commas to rustc_ast_pretty::pp docs 2020-12-28 14:23:20 -08:00