8

fix an ICE on unwrapping a None by llogiq · Pull Request #8167 · rust-lang/rust-...

 2 years ago
source link: https://github.com/rust-lang/rust-clippy/pull/8167
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Copy link

Collaborator

llogiq commented 23 days ago

edited

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]


Recommend

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK