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

Vector.free violates scope #28

Open
zopsicle opened this issue Jun 13, 2019 · 2 comments
Open

Vector.free violates scope #28

zopsicle opened this issue Jun 13, 2019 · 2 comments

Comments

@zopsicle
Copy link

zopsicle commented Jun 13, 2019

Vector.free is annotated scope on the this parameter. It then passes a member of this to alloc.dispose in @trusted lambda, but does not verify that alloc.dispose has a scope attribute on the argument. This compiles because @trusted turns off escape analysis.

@atilaneves
Copy link
Owner

Thanks for opening this. I'm currently reviewing all instances of @trusted in the code.

@zopsicle
Copy link
Author

Cool :) Having non-inferred attributes on templated code is always tricky!

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

No branches or pull requests

2 participants