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

Fix new clippy lints introduced in Rust 1.58 #1170

Merged
merged 1 commit into from
Jan 14, 2022

Conversation

alamb
Copy link
Contributor

@alamb alamb commented Jan 13, 2022

Its that time of month! Rust 1.58 has been released and with it some new clippy lints.

https://github.com/rust-lang/rust/blob/master/RELEASES.md#version-1580-2022-01-13

@@ -244,6 +244,7 @@ impl std::ops::Deref for Buffer {
}

unsafe impl Sync for Buffer {}
#[allow(clippy::non_send_fields_in_send_ty)]
Copy link
Contributor Author

Choose a reason for hiding this comment

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

The unsafe marker for Buffer worries me (perhaps related to the FFI deallocator?) -- I will file a ticket to look into it in more detail

In the interim, this code is no more sound/unsound than it was prior to clippy noticing this problem, so I think it would be ok to merge this PR in.

Copy link
Contributor

Choose a reason for hiding this comment

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

I also found some discussion about this false positive, related to NonNull (which we use in Bytes), at rust-lang/rust-clippy#8045. For now disabling the warning here sounds good.

@github-actions github-actions bot added arrow Changes to the arrow crate parquet Changes to the parquet crate labels Jan 13, 2022
@alamb
Copy link
Contributor Author

alamb commented Jan 14, 2022

CI is failing due to #1169 -- so I plan to merge this PR and then that one

@alamb alamb merged commit 7449e2c into apache:master Jan 14, 2022
@alamb alamb deleted the alamb/clippy2 branch January 14, 2022 16:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
arrow Changes to the arrow crate parquet Changes to the parquet crate
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants