mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Use 2018-style paths in code generated by proc-macro derives
This commit is contained in:
parent
acabd50f03
commit
86f148fb97
3 changed files with 13 additions and 13 deletions
|
@ -21,16 +21,16 @@ fn js_traceable_derive(s: synstructure::Structure) -> quote::Tokens {
|
|||
let ident = param.ident;
|
||||
where_clause
|
||||
.predicates
|
||||
.push(parse_quote!(#ident: ::dom::bindings::trace::JSTraceable))
|
||||
.push(parse_quote!(#ident: crate::dom::bindings::trace::JSTraceable))
|
||||
}
|
||||
|
||||
let tokens = quote! {
|
||||
#[allow(unsafe_code)]
|
||||
unsafe impl #impl_generics ::dom::bindings::trace::JSTraceable for #name #ty_generics #where_clause {
|
||||
unsafe impl #impl_generics crate::dom::bindings::trace::JSTraceable for #name #ty_generics #where_clause {
|
||||
#[inline]
|
||||
#[allow(unused_variables, unused_imports)]
|
||||
unsafe fn trace(&self, tracer: *mut ::js::jsapi::JSTracer) {
|
||||
use ::dom::bindings::trace::JSTraceable;
|
||||
unsafe fn trace(&self, tracer: *mut js::jsapi::JSTracer) {
|
||||
use crate::dom::bindings::trace::JSTraceable;
|
||||
match *self {
|
||||
#match_body
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue