]> git.lizzy.rs Git - rust.git/commit
Merge #6595
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>
Fri, 20 Nov 2020 16:30:04 +0000 (16:30 +0000)
committerGitHub <noreply@github.com>
Fri, 20 Nov 2020 16:30:04 +0000 (16:30 +0000)
commit48bb4bf22895edd3658658f088499b0dd60df371
tree696c39c005c76f9e718782d7c18152a84ca6f4dc
parent66db0d3cadd4fefd70543aba8eae57e8db99935a
parent5d39f6a357a519226165af5614f381054f3c33ea
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 <lukastw97@gmail.com>