mirror of
https://github.com/rust-lang/rust.git
synced 2025-10-02 10:18:25 +00:00

return the correct type for closures in `type_of` A bit unhappy about the way `typeck::check_crate` works rn. Would have preferred to not change `CollectItemTypesVisitor` in this way. r? ``@nikomatsakis``
For high-level intro to how type checking works in rustc, see the type checking chapter of the rustc dev guide.