+/// Check for resolve collisions between a trait and its derive
+///
+/// These are common and we should just resolve to the trait in that case
+fn is_derive_trait_collision<T>(ns: &PerNS<Option<(Res, T)>>) -> bool {
+ if let PerNS {
+ type_ns: Some((Res::Def(DefKind::Trait, _), _)),
+ macro_ns: Some((Res::Def(DefKind::Macro(MacroKind::Derive), _), _)),
+ ..
+ } = *ns
+ {
+ true
+ } else {
+ false
+ }
+}
+