mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-27 01:04:03 +00:00
fix comment
This commit is contained in:
parent
f1753ff8f8
commit
17f87c5aff
@ -338,7 +338,7 @@ fn rematch_unsize<'tcx>(
|
|||||||
.into_obligations(),
|
.into_obligations(),
|
||||||
);
|
);
|
||||||
|
|
||||||
// Similar to ADTs, require that the rest of the fields are equal.
|
// Similar to ADTs, require that we can unsize the tail.
|
||||||
nested.push(Obligation::new(
|
nested.push(Obligation::new(
|
||||||
tcx,
|
tcx,
|
||||||
ObligationCause::dummy(),
|
ObligationCause::dummy(),
|
||||||
|
@ -740,7 +740,7 @@ impl<'tcx> EvalCtxt<'_, 'tcx> {
|
|||||||
Ty::new_tup_from_iter(tcx, a_rest_tys.iter().copied().chain([b_last_ty]));
|
Ty::new_tup_from_iter(tcx, a_rest_tys.iter().copied().chain([b_last_ty]));
|
||||||
self.eq(goal.param_env, unsized_a_ty, b_ty)?;
|
self.eq(goal.param_env, unsized_a_ty, b_ty)?;
|
||||||
|
|
||||||
// Similar to ADTs, require that the rest of the fields are equal.
|
// Similar to ADTs, require that we can unsize the tail.
|
||||||
self.add_goal(goal.with(
|
self.add_goal(goal.with(
|
||||||
tcx,
|
tcx,
|
||||||
ty::TraitRef::new(
|
ty::TraitRef::new(
|
||||||
|
Loading…
Reference in New Issue
Block a user