diff options
Diffstat (limited to 'src/expand.rs')
-rw-r--r-- | src/expand.rs | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/expand.rs b/src/expand.rs index e78c6c4..2f4697a 100644 --- a/src/expand.rs +++ b/src/expand.rs @@ -125,6 +125,8 @@ fn lint_suppress_with_body() -> Attribute { parse_quote! { #[allow( clippy::let_unit_value, + clippy::no_effect_underscore_binding, + clippy::shadow_same, clippy::type_complexity, clippy::type_repetition_in_bounds, clippy::used_underscore_binding @@ -396,7 +398,13 @@ fn positional_arg(i: usize, pat: &Pat) -> Ident { fn has_bound(supertraits: &Supertraits, marker: &Ident) -> bool { for bound in supertraits { if let TypeParamBound::Trait(bound) = bound { - if bound.path.is_ident(marker) { + if bound.path.is_ident(marker) + || bound.path.segments.len() == 3 + && (bound.path.segments[0].ident == "std" + || bound.path.segments[0].ident == "core") + && bound.path.segments[1].ident == "marker" + && bound.path.segments[2].ident == *marker + { return true; } } |