]> git.lizzy.rs Git - rust.git/commitdiff
Merge #5981
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>
Fri, 11 Sep 2020 21:11:59 +0000 (21:11 +0000)
committerGitHub <noreply@github.com>
Fri, 11 Sep 2020 21:11:59 +0000 (21:11 +0000)
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 <mail4score@gmail.com>

Trivial merge