mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
The reason that I am doing this is I discovered that we emit worse quality diagnostics since if we emit an error while running the borrow to destructure transform, we want to do a complete cleanup to be safe (e.x.: converting copy_value -> explicit_copy_value). This causes the object checker to then not emit any additional diagnostics for other variables that were not impacted by the BorrowToDestructureTransform, reducing the quality of diagnostics in a significant way that isn't needed.