rust/clippy_lints
bors e1607e9d31 Auto merge of #8912 - Alexendoo:needless-late-init-ice, r=giraffate
needless_late_init: fix ICE when all branches return the never type

Fixes #8911

When the assignment is done in a match guard or the if condition and all of the branches return the never type `assignment_suggestions` would return an empty `Vec` which caused the ICE. It now returns `None` in that scenario

Also moves some tests to the top of the file

changelog: ICE Fixes: [`needless_late_init`] #8911
2022-05-31 00:46:52 +00:00
..
src Auto merge of #8912 - Alexendoo:needless-late-init-ice, r=giraffate 2022-05-31 00:46:52 +00:00
Cargo.toml Update clippy version 0.1.62 -> 0.1.63 2022-05-20 21:12:41 +02:00
README.md

This crate contains Clippy lints. For the main crate, check GitHub.