Skip to content

Conversation

@daxpedda
Copy link
Collaborator

@daxpedda daxpedda commented May 14, 2025

This changes the implementation of Eq to not use Eq::assert_receiver_is_total_eq() and the implementation of ZeroizeOnDrop to not use zeroize::__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