Skip to content
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

Rewrite has_destructor as a fixed point analysis #927

Closed
fitzgen opened this issue Aug 23, 2017 · 2 comments
Closed

Rewrite has_destructor as a fixed point analysis #927

fitzgen opened this issue Aug 23, 2017 · 2 comments

Comments

@fitzgen
Copy link
Member

fitzgen commented Aug 23, 2017

Very similar to #765, you could look at the PR that fixed that issue and have a template for fixing this issue.

This will allow us to compute the information once and then cache the results, as well as remove the detect_has_destructor_cycle field.

I'm happy to mentor anyone who wants to pick this up.

@bd339
Copy link

bd339 commented Aug 23, 2017

I would like to take a stab at this. I've taken a look at the comments and the PR in #765, as well as the existing code for the has_destructor analysis, so I feel like I have what I need to get started.

@fitzgen
Copy link
Member Author

fitzgen commented Aug 23, 2017

@bd339 great! Let me know if you run into any trouble or have any questions!

bors-servo pushed a commit that referenced this issue Aug 25, 2017
Rewrite `has destructor` analysis as a fixed-point analysis

Fixes #927 . Note that this creates a dependency between the "cannot derive copy" and "has destructor" analysis, i.e. the "has destructor" analysis must run before the "cannot derive copy" analysis, because "cannot derive copy" needs the results of "has destructor".
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants