Skip to content

[ownership] When we flag an over consume, improve error msg by dumping consuming user list. #29872

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conversation

gottesmm
Copy link
Contributor

Specifically, there are a few places in the ownership data flow where before
this patch we just dumped the violating user and the block where the overconsume
occurred. Since we only dumped the block rather than consuming user list, it
could require a little bit of time/energy to identify why the block was
considered to already have a consume in it. So at least by dumping the consuming
user list, the compiler writer has more information to reason about this.

…g consuming user list.

Specifically, there are a few places in the ownership data flow where before
this patch we just dumped the violating user and the block where the overconsume
occurred. Since we only dumped the block rather than consuming user list, it
could require a little bit of time/energy to identify why the block was
considered to already have a consume in it. So at least by dumping the consuming
user list, the compiler writer has more information to reason about this.
@gottesmm
Copy link
Contributor Author

@swift-ci smoke test and merge

@swift-ci swift-ci merged commit f15435d into swiftlang:master Feb 17, 2020
@gottesmm gottesmm deleted the pr-fb98c866323e29b0bd6b281370f9c9c8e10701a0 branch February 17, 2020 02:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants