Consequences of ptr_arg #846
Labels
C-enhancement
Category: Enhancement of lints, like adding more cases or adding help messages
E-medium
Call for participation: Medium difficulty level problem and requires some initial experience.
T-AST
Type: Requires working with the AST
Currently, following
ptr_arg
can lead to errors, ifFn
reference (fn foo(&Vec<u8>) { .. }; let foo : Fn(&Vec<u8>) = foo
)&Vec
reference.We could extend the lint to
ptr_arg
, otherwise don't lint. We should also bail on out-of-crate functions.The text was updated successfully, but these errors were encountered: