-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
New lint: mem_replace_with_uninit #4511
Conversation
3a991ea
to
66d5957
Compare
Seems to be blocked on a rustup. |
Should work when you retrigger CI, or do rebase. |
1e6adf7
to
3c1ea68
Compare
There is some potential for false positives here: |
You're right, that should probably be another lint, because |
3c1ea68
to
0466855
Compare
|
If the types are all zero-compatible, they should implement |
1e68ee4
to
c6c095a
Compare
c6c095a
to
edcc466
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you also run ./util/dev fmt
. The only reason CI passes, is because nightly rustfmt
is missing since a few days.
edcc466
to
61d061b
Compare
@flip1995 can you have another look? The problem was that I tried to match |
61d061b
to
a6ba58e
Compare
070e3a7
to
b4dee97
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, waiting for the rustup.
b4dee97
to
ceeffcb
Compare
@bors r+ rollup |
📌 Commit ceeffcb has been approved by |
rebased, will r=@flip1995 once travis is happy. |
…lip1995 New lint: mem_replace_with_uninit changelog: add `mem_replace_uninit` lint This fixes rust-lang#4485
New lint: mem_replace_with_uninit changelog: add `mem_replace_uninit` lint This fixes #4485
…lip1995 New lint: mem_replace_with_uninit changelog: add `mem_replace_uninit` lint This fixes rust-lang#4485
@bors retry (for queue prio) |
Rollup of 4 pull requests Successful merges: - #4511 (New lint: mem_replace_with_uninit) - #4535 (New lint: Require `# Safety` section in pub unsafe fn docs) - #4539 (Changes cast-lossless to a pedantic lint) - #4544 (#4542 remove machine applicable suggestion) Failed merges: r? @ghost changelog: none
New lint: mem_replace_with_uninit changelog: add `mem_replace_uninit` lint This fixes #4485
💔 Test failed - checks-travis |
Your other new lint (the |
ceeffcb
to
8d884c8
Compare
@bors retry |
Needs to be reapproved @bors r+ |
📌 Commit 8d884c8 has been approved by |
New lint: mem_replace_with_uninit changelog: add `mem_replace_uninit` lint This fixes #4485
☀️ Test successful - checks-travis, status-appveyor |
changelog: add
mem_replace_uninit
lintThis fixes #4485