bors 547efad945 Auto merge of #8167 - rust-lang:fix-8166, r=xFredNet
fix an ICE on unwrapping a None

This very likely fixes #8166 though I wasn't able to meaningfully reduce a test case. This line is the only call to `unwrap` within that function, which was the one in the stack trace that triggered the ICE, so I think we'll be OK.

`@hackmad` can you pull and build this branch and check if it indeed fixes your problem?

---

changelog: Fixed ICE in [`unnecessary_cast`]
2021-12-25 13:38:08 +00:00
..
2021-12-25 13:11:54 +01:00
2021-12-06 12:33:02 -06:00
2021-12-23 22:12:08 -08:00
2021-12-06 12:33:02 -06:00
2021-12-06 12:33:02 -06:00
2021-12-06 12:33:02 -06:00
2021-12-13 17:09:16 +00:00