swift
9ae7ff30 - [move-only] Wire up emission of the location for non-consuming uses for objects and emit more precise errors for consuming use errors.

Commit
2 years ago
[move-only] Wire up emission of the location for non-consuming uses for objects and emit more precise errors for consuming use errors. Specifically, previously if we emitted an error we just dumped all of the consuming uses. Now instead for each consuming use that needs a copy, we perform a search for a specific boundary use (consuming or non-consuming) that is reachable from the former and emit a specialized error for it. Thus we emit for the two consuming case the normal consumed twice error, and now for non-consuming errors we emit the "use after consume" error.
Author
Committer
Parents
Loading