diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2020-10-06 12:36:25 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2020-10-06 12:36:25 +0100 |
commit | 69512dae26278f06b5ac96a7b6093abb69cdd040 (patch) | |
tree | f390143fdb1feea0b6a32cef9fad7907538fb8ef /crates/parser/src/grammar/expressions | |
parent | cb78c40b0ed1e8cf609457d63c5137022d2e1907 (diff) | |
parent | af4ae86e2700209283333490da377767e00f5ed2 (diff) |
Merge #6147
6147: Do not leave braces for colons in dbg! r=matklad a=SomeoneToIgnore
Tweak remove dbg heuristics a bit to remove braces when colons (`:`) are used in the non-leaf dbg expressions.
Before:
`dbg!(Foo::foo_test()).bar()` -> `(Foo::foo_test()).bar()`
After:
`dbg!(Foo::foo_test()).bar()` -> `Foo::foo_test().bar()`
Co-authored-by: Kirill Bulatov <[email protected]>
Diffstat (limited to 'crates/parser/src/grammar/expressions')
0 files changed, 0 insertions, 0 deletions