Skip to content

Stop Using Internal APIs #116

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
May 14, 2025
Merged

Stop Using Internal APIs #116

merged 3 commits into from
May 14, 2025

Conversation

daxpedda
Copy link
Collaborator

This changes the implementation of Eq to not use Eq::assert_receiver_is_total_eq() and the implementation of ZeroizeOnDrop to not use zeroite::__internal. Both are doc(hidden) and therefor unstable APIs.

Resolves #115.

@daxpedda daxpedda requested a review from ModProg May 14, 2025 20:52
let _: __AssertEq<std::marker::PhantomData<T> >;
impl<T> DeriveWhereAssertEq for Test<T> {
fn assert(&self) {
struct __AssertEq<__T: ::core::cmp::Eq + ?::core::marker::Sized>(::core::marker::PhantomData<__T>);
Copy link
Owner

Choose a reason for hiding this comment

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

at some point we could consider creating our own types for stuff like that, though that'd require a non procmacro crate

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Added to #25.

@daxpedda daxpedda merged commit 1933e5a into ModProg:main May 14, 2025
67 checks passed
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.

Don't use internal APIs
2 participants