81053b912f
2229: Rewrite/Refactor Closure Capture Analaysis While handling all the differnet edge cases the code for the captur analysis got pretty compicated. Looking at the overall picture of the edge cases the rules can still be layed out simply. Alogithm: https://hackmd.io/D3I_gwvuT-SPnJ22tgJumw r? `@nikomatsakis` Closes https://github.com/rust-lang/project-rfc-2229/issues/52 Implementation part of https://github.com/rust-lang/project-rfc-2229/issues/53
For high-level intro to how type checking works in rustc, see the type checking chapter of the rustc dev guide.