Function clippy_utils::is_trait_method
source · pub fn is_trait_method(
cx: &LateContext<'_>,
expr: &Expr<'_>,
diag_item: Symbol
) -> boolExpand description
Checks if the method call given in expr belongs to the given trait.