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

Improve redundant_slicing #6975

Merged
merged 1 commit into from
Mar 26, 2021
Merged

Conversation

Jarcho
Copy link
Contributor

@Jarcho Jarcho commented Mar 26, 2021

fixes: #6968

changelog: Fix redundant_slicing suggestion when a reborrow might be required or when the value is from a macro call

Fix bad suggestion when a reborrow might be required
Fix bad suggestion when the value being sliced is a macro call
Don't lint inside of a macro due to the previous context sensitive changes
@rust-highfive
Copy link

r? @llogiq

(rust-highfive has picked a reviewer for you, use r? to override)

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties label Mar 26, 2021
@llogiq
Copy link
Contributor

llogiq commented Mar 26, 2021

Thank you! @bors r+

@bors
Copy link
Contributor

bors commented Mar 26, 2021

📌 Commit 0ff68bb has been approved by llogiq

@bors
Copy link
Contributor

bors commented Mar 26, 2021

⌛ Testing commit 0ff68bb with merge 63aca96...

@bors
Copy link
Contributor

bors commented Mar 26, 2021

☀️ Test successful - checks-action_dev_test, checks-action_remark_test, checks-action_test
Approved by: llogiq
Pushing 63aca96 to master...

@bors bors merged commit 63aca96 into rust-lang:master Mar 26, 2021
@Jarcho Jarcho deleted the redundant_slicing_fp branch April 6, 2021 16:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-review Status: Awaiting review from the assignee but also interested parties
Projects
None yet
Development

Successfully merging this pull request may close these issues.

redundant_slicing false positive on bytes::buf::UninitSlice move
4 participants