rust-analyzer/crates/ra_syntax
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
..
fuzz Added test for check doc strings in crates. 2019-09-30 11:58:53 +03:00
src Fix panic in split_imports assist 2020-04-20 16:34:01 +02:00
test_data Align grammar for record patterns and literals 2020-04-12 00:00:15 +02:00
Cargo.toml Remove rustc_lexer dependency in favour of rustc-ap-rustc_lexer 2020-04-06 10:08:51 +02:00