rust/crates/ra_ssr/src
bors[bot] e1a5bd866e
Merge #5096 #5097
5096: Fix handling of whitespace when applying SSR within macro expansions. r=matklad a=davidlattimore

I originally did replacement by passing in the full file text. Then as some point I thought I could do without it. Turns out calling .text() on a node coming from a macro expansion isn't a great idea, especially when you then try and use ranges from the original source to cut that text. The test I added here actually panics without the rest of this change (sorry I didn't notice sooner).

5097: Fix SSR prompt following #4919 r=matklad a=davidlattimore



Co-authored-by: David Lattimore <dml@google.com>
2020-06-29 16:03:10 +00:00
..
lib.rs Fix handling of whitespace when applying SSR within macro expansions. 2020-06-27 20:38:31 +10:00
matching.rs Fix handling of whitespace when applying SSR within macro expansions. 2020-06-27 20:38:31 +10:00
parsing.rs Use more of FxHash* 2020-06-29 18:07:52 +03:00
replacing.rs Fix handling of whitespace when applying SSR within macro expansions. 2020-06-27 20:38:31 +10:00
tests.rs Fix handling of whitespace when applying SSR within macro expansions. 2020-06-27 20:38:31 +10:00