Skip to content

Warn about unsafe blocks in unsafe functions #6038

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

Closed
wants to merge 3 commits into from

Conversation

alexcrichton
Copy link
Member

Because unsafe functions are never warned about, then all unsafe blocks in unsafe functions should definitely be warned about (no need to be redundant). This fixes this case, adds tests, cleans up remaining cases, and then fixes a few other import warnings being spit out.

bors added a commit that referenced this pull request Apr 24, 2013
Because unsafe functions are never warned about, then all `unsafe` blocks in unsafe functions should definitely be warned about (no need to be redundant). This fixes this case, adds tests, cleans up remaining cases, and then fixes a few other import warnings being spit out.
@bors bors closed this Apr 24, 2013
flip1995 pushed a commit to flip1995/rust that referenced this pull request Sep 24, 2020
Add `manual-strip` lint

Add `manual-strip` lint.

changelog: Add `manual-strip` lint
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.

3 participants