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

Fixed stacked borrows violation in dealloc (fixes #247) #248

Merged
merged 2 commits into from
May 20, 2024

Conversation

bluurryy
Copy link
Contributor

In some strange edge case miri complains about a stacked borrows violation (see #247). I don't understand why the violation gets triggered in this particular case.

But when using the pointer from the footer instead of using the parameter provided one, miri won't complain anymore.

Copy link
Owner

@fitzgen fitzgen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Interesting. Probably a provenance thing.

Can you add a regression test? Thanks!

@bluurryy
Copy link
Contributor Author

Like this?

Copy link
Owner

@fitzgen fitzgen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@fitzgen fitzgen merged commit b594a77 into fitzgen:main May 20, 2024
8 checks passed
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.

None yet

2 participants