97b24f3236
Previous efforts to ignore partially consumed values meant we were also not considering borrows of a projection. This led to cases where we'd miss borrowed types which MIR expected to be there, leading to ICEs.
For high-level intro to how type checking works in rustc, see the type checking chapter of the rustc dev guide.