diff options
| author | Michael Goulet <michael@errs.io> | 2023-01-20 21:33:23 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-01-20 21:33:23 -0500 |
| commit | 7168aa5eb10e0c7e879b76152b659143015772ec (patch) | |
| tree | 6f86dc63200e7755efa1009a118a863a84814563 | |
| parent | 7565b9aa4a8707a265e0111f40c14bbc8a3e42df (diff) | |
| parent | 1adb4d6e5f5d242459655a6ef071669422ce0019 (diff) | |
| download | rust-7168aa5eb10e0c7e879b76152b659143015772ec.tar.gz rust-7168aa5eb10e0c7e879b76152b659143015772ec.zip | |
Rollup merge of #107112 - eltociear:patch-19, r=albertlarsan68
Fix typo in opaque_types.rs paramters -> parameters
| -rw-r--r-- | compiler/rustc_infer/src/infer/opaque_types.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_infer/src/infer/opaque_types.rs b/compiler/rustc_infer/src/infer/opaque_types.rs index e22ba9785e1..c54c66eab27 100644 --- a/compiler/rustc_infer/src/infer/opaque_types.rs +++ b/compiler/rustc_infer/src/infer/opaque_types.rs @@ -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()) { @@ -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()) { |
