You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
warning: function pointer comparisons do not produce meaningful results since their addresses are not guaranteed to be unique
--> capnp/src/introspect.rs:275:55
|
275 | core::ptr::eq(self.generic, other.generic) && self.field_types == other.field_types
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: the address of the same function can vary between different codegen units
= note: furthermore, different functions could have the same address after being merged together
= note: for more information visit <https://doc.rust-lang.org/nightly/core/ptr/fn.fn_addr_eq.html>
= note: `#[warn(unpredictable_function_pointer_comparisons)]` on by default
Unfortunately, I needed to revert to the old impl in #550. We're now suppressing the warning, and nothing internal to capnp depends on the possible unpredictable behavior. But still downstream users might be unpleasantly surprised if they use equality on types, so I opened #551 to track further progress on this issue.
The text was updated successfully, but these errors were encountered: