Skip to content

Commit

Permalink
Rollup merge of rust-lang#107112 - eltociear:patch-19, r=albertlarsan68
Browse files Browse the repository at this point in the history
Fix typo in opaque_types.rs

paramters -> parameters
  • Loading branch information
matthiaskrgr authored Jan 20, 2023
2 parents 0275e77 + 1adb4d6 commit 76339c9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions compiler/rustc_infer/src/infer/opaque_types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -479,7 +479,7 @@ where
}

ty::Alias(ty::Opaque, ty::AliasTy { def_id, ref substs, .. }) => {
// Skip lifetime paramters that are not captures.
// Skip lifetime parameters that are not captures.
let variances = self.tcx.variances_of(*def_id);

for (v, s) in std::iter::zip(variances, substs.iter()) {
Expand All @@ -492,7 +492,7 @@ where
ty::Alias(ty::Projection, proj)
if self.tcx.def_kind(proj.def_id) == DefKind::ImplTraitPlaceholder =>
{
// Skip lifetime paramters that are not captures.
// Skip lifetime parameters that are not captures.
let variances = self.tcx.variances_of(proj.def_id);

for (v, s) in std::iter::zip(variances, proj.substs.iter()) {
Expand Down

0 comments on commit 76339c9

Please sign in to comment.