From bcc27d9bd01f973bf9f48c6e310e235ee02a8c99 Mon Sep 17 00:00:00 2001 From: Avi Weinstock Date: Tue, 3 Mar 2015 09:06:45 -0500 Subject: [PATCH] Replace borrow with borrow_for_gc_trace in JSTraceable::trace (Issue #4778). --- components/script/dom/bindings/cell.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/components/script/dom/bindings/cell.rs b/components/script/dom/bindings/cell.rs index 81085256821..18ea62d7106 100644 --- a/components/script/dom/bindings/cell.rs +++ b/components/script/dom/bindings/cell.rs @@ -94,7 +94,9 @@ impl DOMRefCell { impl JSTraceable for DOMRefCell { fn trace(&self, trc: *mut JSTracer) { - (*self).borrow().trace(trc) + unsafe { + (*self).borrow_for_gc_trace().trace(trc) + } } }