mirror of
https://github.com/rust-lang/rust.git
synced 2025-10-12 23:29:04 +00:00

Only look for param in item's generics if it actually comes from generics Record whether a `hir::GenericParam` comes from an item's generics, or from a `for<...>` binder. Then, only look for the param in `object_lifetime_default` if it actually comes from the item's generics. Fixes #108177
For high-level intro to how type checking works in rustc, see the type checking chapter of the rustc dev guide.