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>(
338338 . into_obligations ( ) ,
339339 ) ;
340340
341- // Similar to ADTs, require that the rest of the fields are equal .
341+ // Similar to ADTs, require that we can unsize the tail .
342342 nested. push ( Obligation :: new (
343343 tcx,
344344 ObligationCause :: dummy ( ) ,
Original file line number Diff line number Diff line change @@ -740,7 +740,7 @@ impl<'tcx> EvalCtxt<'_, 'tcx> {
740740 Ty :: new_tup_from_iter ( tcx, a_rest_tys. iter ( ) . copied ( ) . chain ( [ b_last_ty] ) ) ;
741741 self . eq ( goal. param_env , unsized_a_ty, b_ty) ?;
742742
743- // Similar to ADTs, require that the rest of the fields are equal .
743+ // Similar to ADTs, require that we can unsize the tail .
744744 self . add_goal ( goal. with (
745745 tcx,
746746 ty:: TraitRef :: new (
You can’t perform that action at this time.
0 commit comments