rust-analyzer/crates/ra_assists
bors[bot] 46b63c462d
Merge #2099
2099: Fix panic on raw string assist r=matklad a=aee11

Strings that do not contain two quotation marks would cause a slice indexing panic because `find_usual_string_range` would return a range that only contained a single quotation mark.
Panic example:
```
fn main() {
    let s = "<|>
}
```

I noticed a lot of panics from the `make_raw_string` assist while working on another issue today.

Co-authored-by: Alexander Elís Ebenesersson <alex2789@gmail.com>
2019-10-27 19:20:01 +00:00
..
src Merge #2099 2019-10-27 19:20:01 +00:00
Cargo.toml Remove unused dependencies 2019-10-12 08:00:54 +09:00