diff options
author | Simon Sapin <simon.sapin@exyr.org> | 2017-08-31 17:17:59 +0200 |
---|---|---|
committer | Simon Sapin <simon.sapin@exyr.org> | 2017-08-31 17:17:59 +0200 |
commit | 1dcede75d72713f454f08ec93c22a06199eb861b (patch) | |
tree | 799e67988ad43f9c4cb83dd225c9c16f35c91140 /components/script/dom | |
parent | c4800a6c83e6fdabaf7c4eff70a24487d16f18ff (diff) | |
download | servo-1dcede75d72713f454f08ec93c22a06199eb861b.tar.gz servo-1dcede75d72713f454f08ec93c22a06199eb861b.zip |
Upgrade to rustc 1.21.0-nightly (7eeac1b81 2017-08-30)
Diffstat (limited to 'components/script/dom')
-rw-r--r-- | components/script/dom/bindings/trace.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/components/script/dom/bindings/trace.rs b/components/script/dom/bindings/trace.rs index df681e3add9..b566e972ec2 100644 --- a/components/script/dom/bindings/trace.rs +++ b/components/script/dom/bindings/trace.rs @@ -425,6 +425,13 @@ unsafe impl<A, B> JSTraceable for fn(A) -> B { } } +unsafe impl<'a, A, B> JSTraceable for fn(&A) -> B { + #[inline] + unsafe fn trace(&self, _: *mut JSTracer) { + // Do nothing + } +} + unsafe impl<T> JSTraceable for IpcSender<T> where T: for<'de> Deserialize<'de> + Serialize { #[inline] unsafe fn trace(&self, _: *mut JSTracer) { |