Skip to content

Commit 17f87c5

Browse files
committed
fix comment
1 parent f1753ff commit 17f87c5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

compiler/rustc_trait_selection/src/solve/eval_ctxt/select.rs

+1-1
Original file line numberDiff line numberDiff 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(),

compiler/rustc_trait_selection/src/solve/trait_goals.rs

+1-1
Original file line numberDiff line numberDiff 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(

0 commit comments

Comments
 (0)