diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2020-11-20 16:30:04 +0000 |
---|---|---|
committer | GitHub <[email protected]> | 2020-11-20 16:30:04 +0000 |
commit | 48bb4bf22895edd3658658f088499b0dd60df371 (patch) | |
tree | 696c39c005c76f9e718782d7c18152a84ca6f4dc /crates/hir_ty/src/tests/display_source_code.rs | |
parent | 66db0d3cadd4fefd70543aba8eae57e8db99935a (diff) | |
parent | 5d39f6a357a519226165af5614f381054f3c33ea (diff) |
Merge #6595
6595: Don't wrap parens around expr in remove_dbg assist if its in conditions r=Veykril a=Veykril
If the expr in the `dbg!` macro consists of multiple elements it won't remove the parentheses if its in a `match` or condition-using construct, as these are followed by siblings causing the `is_leaf` check to fail.
Co-authored-by: Lukas Wirth <[email protected]>
Diffstat (limited to 'crates/hir_ty/src/tests/display_source_code.rs')
0 files changed, 0 insertions, 0 deletions