about summary refs log tree commit diff
path: root/docs/dev/debugging.md
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2020-07-29 21:59:03 +0000
committerGitHub <noreply@github.com>2020-07-29 21:59:03 +0000
commit4567ae575e15cdb9af39b68b1490c062762ec39e (patch)
tree13f8ea0191c808b5ec961b9a6b1d0e3be45f21eb /docs/dev/debugging.md
parentbd5d236724ff1418b3d3e70fd946374db67479d7 (diff)
parent6ea393a8d181dfeebbab9cc1f8a08af7a675be14 (diff)
downloadrust-4567ae575e15cdb9af39b68b1490c062762ec39e.tar.gz
rust-4567ae575e15cdb9af39b68b1490c062762ec39e.zip
Merge #5554
5554: Fix remove_dbg r=matklad a=petr-tik

Closes #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

Co-authored-by: petr-tik <petr-tik@users.noreply.github.com>
Diffstat (limited to 'docs/dev/debugging.md')
0 files changed, 0 insertions, 0 deletions