rust/crates/ra_assists
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
..
src Fix panic in split_imports assist 2020-04-20 16:34:01 +02:00
Cargo.toml Start stdx 2020-03-28 11:01:25 +01:00