diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2019-10-27 19:20:01 +0000 |
---|---|---|
committer | GitHub <[email protected]> | 2019-10-27 19:20:01 +0000 |
commit | 46b63c462d66925b59c0af7dec2eb3c48bc7be25 (patch) | |
tree | 274837f2d667e2a91e253e3bd6d705f717369fbe /crates/ra_syntax/test_data/lexer/0001_hello.txt | |
parent | 534c8a0d78a74e28415f07954d4d948ecfbd64ed (diff) | |
parent | 17bd3e59f86a4da548c6c61dff9421dfdb31b65c (diff) |
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 <[email protected]>
Diffstat (limited to 'crates/ra_syntax/test_data/lexer/0001_hello.txt')
0 files changed, 0 insertions, 0 deletions