1
Fork 0

Restore tuple unsizing feature gate

This commit is contained in:
Michael Goulet 2023-07-16 22:42:46 +00:00
parent 24eefd08e2
commit c02d1a6553
7 changed files with 57 additions and 19 deletions

View file

@ -456,6 +456,9 @@ fn rematch_unsize<'tcx>(
goal.param_env,
ty::TraitRef::new(tcx, goal.predicate.def_id(), [*a_last_ty, *b_last_ty]),
));
// We need to be able to detect tuple unsizing to require its feature gate.
return Ok(Some(ImplSource::TupleUnsizing(nested)));
}
// FIXME: We *could* ICE here if either:
// 1. the certainty is `Certainty::Yes`,