about summary refs log tree commit diff
path: root/tests/mir-opt/lower_array_len.array_bound.NormalizeArrayLen.diff
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2023-01-13 09:11:22 +0000
committerbors <bors@rust-lang.org>2023-01-13 09:11:22 +0000
commitc7a3f34ad8f7d38ad3cf81f89eb8b8d5cbb1b3eb (patch)
treed34f6378c216fc00b82de59f95979fb35fac29ac /tests/mir-opt/lower_array_len.array_bound.NormalizeArrayLen.diff
parentfb39efe26cfbc81e5ed5e6518262fcc2d44229c2 (diff)
parent9721505bf1cc441334c9973525a5c9de826e51bb (diff)
downloadrust-c7a3f34ad8f7d38ad3cf81f89eb8b8d5cbb1b3eb.tar.gz
rust-c7a3f34ad8f7d38ad3cf81f89eb8b8d5cbb1b3eb.zip
Auto merge of #13940 - nlydv:unwrap-panic, r=lnicola
Fix panicking Option unwraping in match arm analysis

Hi, first PR here!

I've noticed my IDE sometimes briefly becoming pretty slow to respond while writing Rust. When checking the logs I found reams of this same error repeating itself.

```
thread 'Worker' panicked at 'called `Option::unwrap()` on a `None` value'
crates/ide-assists/src/handlers/convert_match_to_let_else.rs:90:46
```

RA seemed to have been panicking on virtually every keystroke I made whenever I was part way through writing/refactoring a match statement of relevance to this assist.

The fix in this PR should be self-explanatory.
Diffstat (limited to 'tests/mir-opt/lower_array_len.array_bound.NormalizeArrayLen.diff')
0 files changed, 0 insertions, 0 deletions