bors[bot] 835cf55887
Merge #8767
8767: implement range formatting r=matklad a=euclio

Fixes #7580.

This PR implements the `textDocument/rangeFormatting` request using `rustfmt`'s `--file-lines` option.

Still needs some tests. What I want to know is how I should handle the instability of the `--file-lines` option. It's still unstable in rustfmt, so it's only available on nightly, and needs a special flag to enable. Is there a way for `rust-analyzer` to detect if it's using nightly rustfmt, or for users to opt-in?

Co-authored-by: Andy Russell <arussell123@gmail.com>
2021-05-25 12:15:48 +00:00
..
2021-05-25 00:56:24 +02:00
2021-05-25 02:30:47 +00:00
2021-05-25 00:50:19 +02:00
2021-05-24 19:52:01 +00:00
2021-05-25 13:07:18 +02:00
2021-05-23 21:55:51 +00:00
2021-05-24 21:47:01 +02:00
2021-05-22 17:20:22 +03:00
2021-04-06 16:22:26 +03:00
2021-05-24 18:18:05 +03:00
2021-05-22 16:53:47 +03:00
2021-05-25 12:15:48 +00:00
2021-05-22 16:53:47 +03:00