mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
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:
parent
1f4341e628
commit
b28314d33e
9 changed files with 67 additions and 38 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue