We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e3b308e commit 0c392d8Copy full SHA for 0c392d8
compiler/rustc_builtin_macros/src/deriving/generic/mod.rs
@@ -636,6 +636,10 @@ impl<'a> TraitDef<'a> {
636
}
637
}));
638
639
+ // If this type declaration has type parameters, look for any mention of types *derived* from
640
+ // those parameters in the declaration (e.g. `T::Item`). Those derived types need bounds as
641
+ // well.
642
+
643
let mut ty_params = params
644
.iter()
645
.filter(|param| matches!(param.kind, ast::GenericParamKind::Type { .. }))
0 commit comments