rust/compiler/rustc_hir_analysis
Matthias Krüger 19604c2362
Rollup merge of #108554 - compiler-errors:late-bound-object-default, r=oli-obk
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
2023-03-01 01:20:25 +01:00
..
2023-02-21 11:51:56 +11:00

For high-level intro to how type checking works in rustc, see the type checking chapter of the rustc dev guide.