Update to Rust 1.78 (#32217)

* Update to rust 1.78

* Update crown for rust 1.78

* rust 1.78 is now stable

* Update for nix

* Update comment

Co-authored-by: Martin Robinson <mrobinson@igalia.com>

* Update support/crown/src/common.rs

* Update support/crown/Cargo.toml

* Update support/crown/src/common.rs

* Fix ipc problem

* Update ipc-channel to 0.18.1

* fixed fixme

---------

Co-authored-by: Martin Robinson <mrobinson@igalia.com>
This commit is contained in:
Samson 2024-06-01 08:49:28 +02:00 committed by GitHub
parent 1f4341e628
commit b28314d33e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 67 additions and 38 deletions

View file

@ -274,10 +274,9 @@ impl RootCollection {
unsafe fn unroot(&self, object: *const dyn JSTraceable) {
assert_in_script();
let roots = &mut *self.roots.get();
// FIXME: Use std::ptr::addr_eq after migrating to newer version of std.
match roots
.iter()
.rposition(|r| std::ptr::eq(*r as *const (), object as *const ()))
.rposition(|r| std::ptr::addr_eq(*r as *const (), object as *const ()))
{
Some(idx) => {
roots.remove(idx);