fune/servo/components/servo_arc
Mike Hommey 501f861c99 Bug 1871884 - Use the equivalent of std::ptr::addr_eq in servo_arc::Arc::ptr_eq. r=emilio
1.76 added a warning when comparing pointers with metadata (e.g. a size
or trait vtable), and suggests to use explicit comparisons, either
std::ptr::addr_eq to only compare the address or std::ptr::eq to compare
address + metadata.

The current semantics of Arc::ptr_eq are to compare address + metadata,
but the intended semantics are to compare the address. So we do that.

Differential Revision: https://phabricator.services.mozilla.com/D197275
2023-12-26 22:56:56 +00:00
..
Cargo.toml
lib.rs Bug 1871884 - Use the equivalent of std::ptr::addr_eq in servo_arc::Arc::ptr_eq. r=emilio 2023-12-26 22:56:56 +00:00