about summary refs log tree commit diff
diff options
context:
space:
mode:
authorlcnr <rust@lcnr.de>2023-07-28 12:54:56 +0200
committerlcnr <rust@lcnr.de>2023-07-28 13:00:54 +0200
commit17f87c5aff2b62c0c867e689a2c5493bbefceb29 (patch)
treeb2de5e22c2b068d82cafa9d5e8a894ae2acbfb67
parentf1753ff8f8025f153f945e1544cef1ed2ae0a067 (diff)
downloadrust-17f87c5aff2b62c0c867e689a2c5493bbefceb29.tar.gz
rust-17f87c5aff2b62c0c867e689a2c5493bbefceb29.zip
fix comment
-rw-r--r--compiler/rustc_trait_selection/src/solve/eval_ctxt/select.rs2
-rw-r--r--compiler/rustc_trait_selection/src/solve/trait_goals.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_trait_selection/src/solve/eval_ctxt/select.rs b/compiler/rustc_trait_selection/src/solve/eval_ctxt/select.rs
index 6045001510e..409bcf5ce61 100644
--- a/compiler/rustc_trait_selection/src/solve/eval_ctxt/select.rs
+++ b/compiler/rustc_trait_selection/src/solve/eval_ctxt/select.rs
@@ -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(),
diff --git a/compiler/rustc_trait_selection/src/solve/trait_goals.rs b/compiler/rustc_trait_selection/src/solve/trait_goals.rs
index b8e524d3542..002ad2e5ae4 100644
--- a/compiler/rustc_trait_selection/src/solve/trait_goals.rs
+++ b/compiler/rustc_trait_selection/src/solve/trait_goals.rs
@@ -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(