We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c58d749 commit bc0983dCopy full SHA for bc0983d
compiler/rustc_typeck/src/outlives/implicit_infer.rs
@@ -119,6 +119,12 @@ fn insert_required_predicates_to_be_wf<'tcx>(
119
//
120
// Luckily the only types contained in default substs are type
121
// parameters which don't matter here.
122
+ //
123
+ // FIXME(const_generics): Once more complex const parameter types
124
+ // are allowed, this might be incorrect. I think that we will still be
125
+ // fine, as all outlives relations of the const param types should also
126
+ // be part of the adt containing it, but we should still both update the
127
+ // documentation and add some tests for this.
128
for arg in field_ty.walk_ignoring_default_const_substs() {
129
let ty = match arg.unpack() {
130
GenericArgKind::Type(ty) => ty,
0 commit comments