about summary refs log tree commit diff
path: root/compiler/rustc_ty_utils/src/implied_bounds.rs
diff options
context:
space:
mode:
authorMichael Goulet <michael@errs.io>2024-05-09 20:56:44 -0400
committerMichael Goulet <michael@errs.io>2024-05-09 20:58:46 -0400
commit1c19b6ad60d4993fb25c44ee8b6e625791084662 (patch)
tree797da114a520826da2a67fed6722d54e6e19ddb7 /compiler/rustc_ty_utils/src/implied_bounds.rs
parent8c7c151a7a03d92cc5c75c49aa82a658ec1fe4ff (diff)
downloadrust-1c19b6ad60d4993fb25c44ee8b6e625791084662.tar.gz
rust-1c19b6ad60d4993fb25c44ee8b6e625791084662.zip
Rename Generics::params to Generics::own_params
Diffstat (limited to 'compiler/rustc_ty_utils/src/implied_bounds.rs')
-rw-r--r--compiler/rustc_ty_utils/src/implied_bounds.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/compiler/rustc_ty_utils/src/implied_bounds.rs b/compiler/rustc_ty_utils/src/implied_bounds.rs
index e1534af4987..862fb2e1663 100644
--- a/compiler/rustc_ty_utils/src/implied_bounds.rs
+++ b/compiler/rustc_ty_utils/src/implied_bounds.rs
@@ -69,7 +69,8 @@ fn assumed_wf_types<'tcx>(tcx: TyCtxt<'tcx>, def_id: LocalDefId) -> &'tcx [(Ty<'
                     // case, since it has been liberated), map it back to the early-bound lifetime of
                     // the GAT. Since RPITITs also have all of the fn's generics, we slice only
                     // the end of the list corresponding to the opaque's generics.
-                    for param in &generics.params[tcx.generics_of(fn_def_id).params.len()..] {
+                    for param in &generics.own_params[tcx.generics_of(fn_def_id).own_params.len()..]
+                    {
                         let orig_lt =
                             tcx.map_opaque_lifetime_to_parent_lifetime(param.def_id.expect_local());
                         if matches!(*orig_lt, ty::ReLateParam(..)) {