Replies: 1 comment 4 replies
-
The problem I believe is with this line: trait_object as *const dyn ptr::non_null::verify::SampleTrait == nonnull_trait_object.as_ptr() This is because comparing wide pointers to traits is not well-defined. Can you compare the components of the wide pointer instead? I.e.: The |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
For the function
NonNull::to_raw_parts
, I have the following contract and harness:This produces the following failed check:
line 1733:
It's unclear to me what the check means and what caused the failed check. Is it due to the implementation of
PartialEq for NonNull<T>
? Appreciate any guidance. @zhassan-awsBeta Was this translation helpful? Give feedback.
All reactions