Skip to content

Commit bc0983d

Browse files
committed
add fixme
1 parent c58d749 commit bc0983d

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

compiler/rustc_typeck/src/outlives/implicit_infer.rs

+6
Original file line numberDiff line numberDiff 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,

0 commit comments

Comments
 (0)