File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
compiler/rustc_trait_selection/src/solve Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -338,7 +338,7 @@ fn rematch_unsize<'tcx>(
338
338
.into_obligations(),
339
339
);
340
340
341
- // Similar to ADTs, require that the rest of the fields are equal .
341
+ // Similar to ADTs, require that we can unsize the tail .
342
342
nested.push(Obligation::new(
343
343
tcx,
344
344
ObligationCause::dummy(),
Original file line number Diff line number Diff line change @@ -740,7 +740,7 @@ impl<'tcx> EvalCtxt<'_, 'tcx> {
740
740
Ty::new_tup_from_iter(tcx, a_rest_tys.iter().copied().chain([b_last_ty]));
741
741
self.eq(goal.param_env, unsized_a_ty, b_ty)?;
742
742
743
- // Similar to ADTs, require that the rest of the fields are equal .
743
+ // Similar to ADTs, require that we can unsize the tail .
744
744
self.add_goal(goal.with(
745
745
tcx,
746
746
ty::TraitRef::new(
You can’t perform that action at this time.
0 commit comments