mirror of
https://github.com/rust-lang/rust.git
synced 2025-10-23 13:28:48 +00:00

astconv: extract closures into a separate trait Am currently looking into completely removing `check_generic_arg_count` and `create_substs_for_generic_args` was somewhat difficult to understand for me so I moved these closures into a trait. This should not have changed the behavior of any of these methods
For high-level intro to how type checking works in rustc, see the type checking chapter of the rustc dev guide.