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
New users' code or refactored code might end up containing e.g. functions taking a &Fn() as an argument, when they could take a generic &T that has a T: Fn() trait bound instead.
Linting this in a "perfect" way is obviously (too?) hard. But simple cases could be caught for now and the lint could be replaced by a full blown proof $whenever_someone_is_highly_motivated
New users' code or refactored code might end up containing e.g. functions taking a
&Fn()
as an argument, when they could take a generic&T
that has aT: Fn()
trait bound instead.Linting this in a "perfect" way is obviously (too?) hard. But simple cases could be caught for now and the lint could be replaced by a full blown proof $whenever_someone_is_highly_motivated
Related RFC: rust-lang/rfcs#1603 (comment)
The text was updated successfully, but these errors were encountered: