rust-analyzer/crates
bors[bot] 4567ae575e
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>
2020-07-29 21:59:03 +00:00
..
expect Add a license field to all the crates 2020-07-14 10:57:26 +09:00
flycheck cargo_metadata 0.11.1 and cargo update 2020-07-29 17:06:56 -04:00
paths Add a license field to all the crates 2020-07-14 10:57:26 +09:00
ra_arena Add a license field to all the crates 2020-07-14 10:57:26 +09:00
ra_assists Merge #5554 2020-07-29 21:59:03 +00:00
ra_cfg Cleanup CFG API 2020-07-23 16:53:12 +02:00
ra_db More Rustic API for Env 2020-07-21 17:17:21 +02:00
ra_fmt Add a license field to all the crates 2020-07-14 10:57:26 +09:00
ra_hir Add a builder for DiagnosticSink 2020-07-24 16:30:12 +02:00
ra_hir_def Switch to ungrammar from ast_src 2020-07-29 19:18:25 +02:00
ra_hir_expand Allow filtering diagnostics 2020-07-24 17:38:18 +02:00
ra_hir_ty Merge #5524 2020-07-24 20:18:01 +00:00
ra_ide Replace rand with oorandom 2020-07-29 19:49:10 +02:00
ra_ide_db SSR: Use Definition::find_usages to speed up matching. 2020-07-24 21:34:00 +10:00
ra_mbe Add a license field to all the crates 2020-07-14 10:57:26 +09:00
ra_parser Fix nameref parsing 2020-07-28 20:59:48 +02:00
ra_proc_macro Add a license field to all the crates 2020-07-14 10:57:26 +09:00
ra_proc_macro_srv cargo_metadata 0.11.1 and cargo update 2020-07-29 17:06:56 -04:00
ra_prof Add rustc-perf to metrics 2020-07-25 10:35:45 +02:00
ra_project_model cargo_metadata 0.11.1 and cargo update 2020-07-29 17:06:56 -04:00
ra_ssr Merge #5564 2020-07-29 09:23:33 +00:00
ra_syntax Rename NomialDef -> AdtDef 2020-07-29 19:22:15 +02:00
ra_text_edit Add a license field to all the crates 2020-07-14 10:57:26 +09:00
ra_toolchain Add a license field to all the crates 2020-07-14 10:57:26 +09:00
ra_tt Add a license field to all the crates 2020-07-14 10:57:26 +09:00
rust-analyzer Merge #5563 2020-07-29 21:51:49 +00:00
stdx Replace superslice with API on path to stabilization 2020-07-23 12:59:18 +02:00
test_utils Allow multiline annotations 2020-07-14 14:58:10 +02:00
vfs Add one more test 2020-07-26 11:05:28 +02:00
vfs-notify Simplify exclusion logic 2020-07-18 16:40:10 +02:00