You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
clippy::use_self was previously part of our default set of clippy lints but we've had to remove it since it lead to false positives where applying its suggestions would fail to compile.
#![deny(clippy::use_self)]pubstructFoo<T>{value:T,}impl<T>Foo<T>{pubfnnew<K>(value:K) -> Foo<K>{// ^^^^^^ changing this to `Self` wont workFoo{ value }}}
The text was updated successfully, but these errors were encountered:
Looks like rust-lang/rust-clippy#4140 is the only remaining filed issue on the use_self lint, so once that has been resolved we may be able to add it back to a new version of our standard lints (#59) which would be nice! Probably not v0.3 though (#60) as that should be within a week or so
clippy::use_self
was previously part of our default set of clippy lints but we've had to remove it since it lead to false positives where applying its suggestions would fail to compile.This comment links to some of the issues.
One specific case we've run into is this
The text was updated successfully, but these errors were encountered: