diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2020-09-11 22:11:59 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2020-09-11 22:11:59 +0100 |
commit | c8623461a57e7882ac47b5da13a1a03efa58f603 (patch) | |
tree | 5559fe8ce90fff8f0e5ed9debf67a0c7306f668a /crates/hir_def/src/item_tree.rs | |
parent | 199ebf110353da2da4d706f72adede96149ba977 (diff) | |
parent | 779ea2ea0a0aa70075d28d72dd96c1bc1e709300 (diff) |
Merge #5981
5981: Properly preserve macro braces during dbg! removal r=jonas-schievink a=SomeoneToIgnore
Do `dbg![2 + 2] * 5` -> `(2 + 2) * 5`
This PR also implicitly handles the `{}` case too, but I decided not to add it into the test case since it's a compiler error on the latest stable rustc.
Co-authored-by: Kirill Bulatov <[email protected]>
Diffstat (limited to 'crates/hir_def/src/item_tree.rs')
0 files changed, 0 insertions, 0 deletions