mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-26 00:34:06 +00:00
46b63c462d
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> |
||
---|---|---|
.. | ||
src | ||
Cargo.toml |