fix an ICE on unwrapping a None by llogiq · Pull Request #8167 · rust-lang/rust-...
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.
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
-
7
Copy link Collaborator llogiq commented
-
2
Copy link Contributor llogiq
-
4
New issue avoid eq_op in test code #7811 Merged ...
-
4
Copy link Collaborator llogiq ...
-
5
Copy link Collaborator llogiq ...
-
1
New issue new lint: init-numbered-fields #8170
-
2
Copy link Contributor llogiq
-
3
New issue Omit dbg_macro in test code #8500
-
3
Add partialeq_to_none lint #9288 ...
-
2
add --explain subcommand #8952 Merged
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK