]> git.lizzy.rs Git - rust.git/commitdiff
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)
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>

Trivial merge