File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
compiler/rustc_typeck/src/outlives Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -119,6 +119,12 @@ fn insert_required_predicates_to_be_wf<'tcx>(
119119 //
120120 // Luckily the only types contained in default substs are type
121121 // 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.
122128 for arg in field_ty. walk_ignoring_default_const_substs ( ) {
123129 let ty = match arg. unpack ( ) {
124130 GenericArgKind :: Type ( ty) => ty,
You can’t perform that action at this time.
0 commit comments