mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-26 16:54:01 +00:00
fix comment
This commit is contained in:
parent
f1753ff8f8
commit
17f87c5aff
@ -338,7 +338,7 @@ fn rematch_unsize<'tcx>(
|
||||
.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(
|
||||
tcx,
|
||||
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]));
|
||||
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(
|
||||
tcx,
|
||||
ty::TraitRef::new(
|
||||
|
Loading…
Reference in New Issue
Block a user