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

Recognize mutable slice in return position of a safe function #794

Merged
merged 2 commits into from
Mar 29, 2021

Conversation

dtolnay
Copy link
Owner

@dtolnay dtolnay commented Mar 28, 2021

Fixes #766.

See novifinancial/rust-plasma#3 and MWATelescope/Birli#1 for two examples of the type of unsound signature that this catches.

@dtolnay dtolnay merged commit f72dfb9 into master Mar 29, 2021
@dtolnay dtolnay deleted the mutable branch March 29, 2021 17:08
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.

Detect mutable slice in return position of a safe function
1 participant