Clippy recommends use of unstable Self constructors, which cause an ICE #3567
Labels
C-bug
Category: Clippy is not doing the correct thing
I-suggestion-causes-error
Issue: The suggestions provided by this Lint cause an ICE/error when applied
L-suggestion
Lint: Improving, adding or fixing lint suggestions
This is using clippy
clippy 0.0.212 (2e26fdc2 2018-11-22)
Given this example, clippy will suggest
TestStruct::from_something()
entirely be replaced withSelf()
, which is incorrect, and causes the compiler to ICE due to rust-lang/rust#56611Of note is that VSCode with RLS will offer code actions to automatically do this transformation.
The text was updated successfully, but these errors were encountered: