about summary refs log tree commit diff
path: root/docs/dev/debugging.md
diff options
context:
space:
mode:
authorpetr-tik <petr-tik@users.noreply.github.com>2020-07-27 22:17:15 +0100
committerpetr-tik <petr-tik@users.noreply.github.com>2020-07-27 22:17:15 +0100
commit6ea28c377947b7e26efcb107d0dbbd804ed5e27f (patch)
treec3fce05f13e463ebcf7d9721f29dc5dcf2b84540 /docs/dev/debugging.md
parent01bdeaad71ea87e2e989fc9ded06f69805929e42 (diff)
downloadrust-6ea28c377947b7e26efcb107d0dbbd804ed5e27f.tar.gz
rust-6ea28c377947b7e26efcb107d0dbbd804ed5e27f.zip
Fixed #5129
Addresses two issues:
- keep the parens from dbg!() in case the call is chained or there is
semantic difference if parens are excluded
- Exclude the semicolon after the dbg!(); by checking if it was
accidentally included in the macro_call

investigated, but decided against:
fix ast::MacroCall extraction to never include semicolons at the end -
this logic lives in rowan.

Defensively shorten the macro_range if there is a semicolon token.
Deleted unneccessary temp variable macro_args

Renamed macro_content to "paste_instead_of_dbg", because it isn't a
simple extraction of text inside dbg!() anymore
Diffstat (limited to 'docs/dev/debugging.md')
0 files changed, 0 insertions, 0 deletions