diff options
| author | Eric Huss <eric@huss.org> | 2022-01-07 20:20:56 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-01-07 20:20:56 -0800 |
| commit | 81c515bf771ee872d9fc8871acfc797a5cae08fe (patch) | |
| tree | 747a6da0a860eebdb2edd24638522cc1e4d9bca9 /src/test/codegen/src-hash-algorithm/src-hash-algorithm-sha1.rs | |
| parent | 83de77dd5e2b853b95a12ac8c6cc202eec81892b (diff) | |
| parent | e9fbe79292783972a222afd270db3f77c0b4f3c8 (diff) | |
| download | rust-81c515bf771ee872d9fc8871acfc797a5cae08fe.tar.gz rust-81c515bf771ee872d9fc8871acfc797a5cae08fe.zip | |
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: https://github.com/rust-lang/rust/blob/e9fbe79292783972a222afd270db3f77c0b4f3c8/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.
Diffstat (limited to 'src/test/codegen/src-hash-algorithm/src-hash-algorithm-sha1.rs')
0 files changed, 0 insertions, 0 deletions
