Skip to content

Add deprecation notice to af_alg_iv::as_slice and trait implementations that depend on it #1703

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

Merged
merged 3 commits into from
Oct 16, 2020
Merged

Add deprecation notice to af_alg_iv::as_slice and trait implementations that depend on it #1703

merged 3 commits into from
Oct 16, 2020

Conversation

eduardosm
Copy link
Contributor

These trait implementations exposed an unsound API (see #1501).

@rust-highfive
Copy link

Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @JohnTitor (or someone else) soon.

If any changes to this PR are deemed necessary, please add them as extra commits. This ensures that the reviewer can see what has changed since they last reviewed the code. Due to the way GitHub handles out-of-date commits, this should also make it reasonably obvious what issues have or haven't been addressed. Large or tricky changes may require several passes of review and changes.

Please see the contribution instructions for more information.

@eduardosm
Copy link
Contributor Author

@JohnTitor ping

@JohnTitor
Copy link
Member

Given from #1501 (comment) and #1501 (comment), I'd be in favor of removing that implementation but I'd like to take some period for other users to notice. We could add deprecated attr at first and remove stuff after some releases.

@eduardosm
Copy link
Contributor Author

Looking at what I did with the Debug implementation (print ivlen and ignore iv), would it be acceptable to do the same with the other traits (e.g., PartialEq would only compare ivlen)? This would allow to keep the PartialEq and Hash implementations, but their behavior would change.

@JohnTitor
Copy link
Member

So, as discussed in #1892, let's just remove the impls for it. But as I said before, I'd add a deprecation note to make the breaking change less-painful. r=me once it's added instead of removing the impls here.

@eduardosm
Copy link
Contributor Author

Done, I have re-added the implementations and marked them as deprecated.

@JohnTitor JohnTitor changed the title Remove af_alg_iv::as_slice and trait implementations that depend on it Add deprecation notice to af_alg_iv::as_slice and trait implementations that depend on it Oct 16, 2020
@JohnTitor
Copy link
Member

@bors r+ Thanks!

@bors
Copy link
Contributor

bors commented Oct 16, 2020

📌 Commit d73e8a3 has been approved by JohnTitor

@bors
Copy link
Contributor

bors commented Oct 16, 2020

⌛ Testing commit d73e8a3 with merge 582c5cf...

@bors
Copy link
Contributor

bors commented Oct 16, 2020

☀️ Test successful - checks-actions, checks-cirrus-freebsd-10, checks-cirrus-freebsd-11, checks-cirrus-freebsd-12
Approved by: JohnTitor
Pushing 582c5cf to master...

@bors bors merged commit 582c5cf into rust-lang:master Oct 16, 2020
@eduardosm eduardosm deleted the remove-af_alg_iv-as_slice branch October 16, 2020 18:21
tamird added a commit to amanda-tait/nix that referenced this pull request Nov 9, 2020
These were added in libc 0.28.0; see
rust-lang/libc#1703.
tamird added a commit to amanda-tait/nix that referenced this pull request Nov 10, 2020
These were added in libc 0.28.0; see
rust-lang/libc#1703.
tamird added a commit to amanda-tait/nix that referenced this pull request Nov 11, 2020
These were added in libc 0.28.0; see
rust-lang/libc#1703.
tamird added a commit to amanda-tait/nix that referenced this pull request Nov 11, 2020
These were added in libc 0.28.0; see
rust-lang/libc#1703.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants