aboutsummaryrefslogtreecommitdiffstats
path: root/components/jstraceable_derive/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/jstraceable_derive/lib.rs')
-rw-r--r--components/jstraceable_derive/lib.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/components/jstraceable_derive/lib.rs b/components/jstraceable_derive/lib.rs
index 527c517ef07..3d3c785d971 100644
--- a/components/jstraceable_derive/lib.rs
+++ b/components/jstraceable_derive/lib.rs
@@ -41,10 +41,11 @@ fn expand_string(input: &str) -> String {
}
let tokens = quote! {
- impl #impl_generics ::dom::bindings::trace::JSTraceable for #name #ty_generics #where_clause {
+ #[allow(unsafe_code)]
+ unsafe impl #impl_generics ::dom::bindings::trace::JSTraceable for #name #ty_generics #where_clause {
#[inline]
#[allow(unused_variables, unused_imports)]
- fn trace(&self, tracer: *mut ::js::jsapi::JSTracer) {
+ unsafe fn trace(&self, tracer: *mut ::js::jsapi::JSTracer) {
use ::dom::bindings::trace::JSTraceable;
match *self {
#match_body