aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/bindings/trace.rs
diff options
context:
space:
mode:
authorbors-servo <lbergstrom+bors@mozilla.com>2018-01-26 08:26:49 -0600
committerGitHub <noreply@github.com>2018-01-26 08:26:49 -0600
commitc0d9f28b044ce377fc421475a943555c8ca6f123 (patch)
tree0848ac87c084caeb70f053af3b9df2cf807db8b3 /components/script/dom/bindings/trace.rs
parent4f17235a8e5c4e074415d60c1cea6e89d076d6d8 (diff)
parent31a14082eb999a3bc56f6e59e892709a281514e3 (diff)
downloadservo-c0d9f28b044ce377fc421475a943555c8ca6f123.tar.gz
servo-c0d9f28b044ce377fc421475a943555c8ca6f123.zip
Auto merge of #19872 - nox:domrefcell-tracing, r=jdm
Make JSTraceable for DomRefCell<T> panic if cell is mutably borrowed <!-- Reviewable:start --> This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/19872) <!-- Reviewable:end -->
Diffstat (limited to 'components/script/dom/bindings/trace.rs')
-rw-r--r--components/script/dom/bindings/trace.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/script/dom/bindings/trace.rs b/components/script/dom/bindings/trace.rs
index 3d006d4a6ca..97d9f062688 100644
--- a/components/script/dom/bindings/trace.rs
+++ b/components/script/dom/bindings/trace.rs
@@ -206,7 +206,7 @@ unsafe impl<T: JSTraceable> JSTraceable for UnsafeCell<T> {
unsafe impl<T: JSTraceable> JSTraceable for DomRefCell<T> {
unsafe fn trace(&self, trc: *mut JSTracer) {
- (*self).borrow_for_gc_trace().trace(trc)
+ (*self).borrow().trace(trc)
}
}