about summary refs log tree commit diff
path: root/tests/mir-opt/lower_array_len.array_bound.NormalizeArrayLen.panic-unwind.diff
diff options
context:
space:
mode:
authorEric Huss <eric@huss.org>2022-01-07 20:20:56 -0800
committerGitHub <noreply@github.com>2022-01-07 20:20:56 -0800
commit81c515bf771ee872d9fc8871acfc797a5cae08fe (patch)
tree747a6da0a860eebdb2edd24638522cc1e4d9bca9 /tests/mir-opt/lower_array_len.array_bound.NormalizeArrayLen.panic-unwind.diff
parent83de77dd5e2b853b95a12ac8c6cc202eec81892b (diff)
parente9fbe79292783972a222afd270db3f77c0b4f3c8 (diff)
downloadrust-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 'tests/mir-opt/lower_array_len.array_bound.NormalizeArrayLen.panic-unwind.diff')
0 files changed, 0 insertions, 0 deletions