diff options
author | Samson <16504129+sagudev@users.noreply.github.com> | 2024-06-01 08:49:28 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-01 06:49:28 +0000 |
commit | b28314d33e74c2166bfee278fad7e40616308a86 (patch) | |
tree | 2a7f70f0e9bb50995a49c498b04718d98d251795 /components/script/dom/bindings | |
parent | 1f4341e62842ac76f3ef3ec40cb8114b008b62cc (diff) | |
download | servo-b28314d33e74c2166bfee278fad7e40616308a86.tar.gz servo-b28314d33e74c2166bfee278fad7e40616308a86.zip |
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>
Diffstat (limited to 'components/script/dom/bindings')
-rw-r--r-- | components/script/dom/bindings/root.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/components/script/dom/bindings/root.rs b/components/script/dom/bindings/root.rs index 29b3538928b..c85fffd9287 100644 --- a/components/script/dom/bindings/root.rs +++ b/components/script/dom/bindings/root.rs @@ -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); |