rust/crates
Aleksey Kladov 8a04372fec Fix panic in split_imports assist
The fix is admittedly quit literally just papering over.

Long-term, I see two more principled approaches:

* we switch to a fully tree-based impl, without parse . to_string
  step; with this approach, there shouldn't be any panics. The results
  might be nonsensical, but so was the original input.

* we preserve the invariant that re-parsing constructed node is an
  identity, and make all the `make_xxx` method return an `Option`.

closes #4044
2020-04-20 16:34:01 +02:00
..
ra_arena Use resize_with 2020-03-31 09:02:12 -04:00
ra_assists Fix panic in split_imports assist 2020-04-20 16:34:01 +02:00
ra_cfg Update versions 2020-02-18 16:12:40 +02:00
ra_db Some clippy fixes 2020-04-19 15:15:49 -04:00
ra_flycheck insta 0.16 2020-04-14 13:57:02 -04:00
ra_fmt Provide more complete AST accessors to support usage in rustc 2020-04-09 11:50:37 +02:00
ra_hir Fix goto definition for record patterns 2020-04-18 22:11:49 +02:00
ra_hir_def Some clippy fixes 2020-04-19 15:15:49 -04:00
ra_hir_expand Some clippy fixes 2020-04-19 15:15:49 -04:00
ra_hir_ty Correctly infer types in guard expressions 2020-04-18 22:16:04 +02:00
ra_ide Some clippy fixes 2020-04-19 15:15:49 -04:00
ra_ide_db Fix goto definition for record patterns 2020-04-18 22:11:49 +02:00
ra_mbe Convert bool to ident instead of literal in mbe 2020-04-19 03:24:17 +08:00
ra_parser Align grammar for record patterns and literals 2020-04-12 00:00:15 +02:00
ra_proc_macro Fix extern_process args 2020-04-17 04:08:01 +08:00
ra_proc_macro_srv Merge empty delim subtree in proc-macro 2020-04-18 19:29:04 +08:00
ra_prof Move timeit to stdx 2020-04-10 20:46:42 +02:00
ra_project_model Some clippy fixes 2020-04-19 15:15:49 -04:00
ra_syntax Fix panic in split_imports assist 2020-04-20 16:34:01 +02:00
ra_text_edit Remove some TextUnit->usize escapees 2020-03-12 22:33:27 -04:00
ra_tt Improve tt::Subtree debug print 2020-04-10 00:17:32 +08:00
rust-analyzer Some clippy fixes 2020-04-19 15:15:49 -04:00
stdx Move timeit to stdx 2020-04-10 20:46:42 +02:00
test_utils Make records grammar more orthogonal 2020-04-11 19:20:41 +02:00