File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 11[package ]
22
33name = " string_cache_codegen"
4- version = " 0.4.1 " # Also update ../README.md when making a semver-breaking change
4+ version = " 0.4.2 " # Also update ../README.md when making a semver-breaking change
55authors = [ " The Servo Project Developers" ]
66description = " A codegen library for string-cache, developed as part of the Servo project."
77license = " MIT / Apache-2.0"
@@ -16,5 +16,5 @@ path = "lib.rs"
1616string_cache_shared = {path = " ../shared" , version = " 0.3" }
1717phf_generator = " 0.7.15"
1818phf_shared = " 0.7.4"
19- proc-macro2 = " 0.3.1 "
20- quote = " 0.5.1 "
19+ proc-macro2 = " 0.4 "
20+ quote = " 0.6 "
Original file line number Diff line number Diff line change @@ -179,7 +179,7 @@ impl AtomType {
179179 . as_bytes ( ) )
180180 }
181181
182- fn to_tokens ( & mut self ) -> quote :: Tokens {
182+ fn to_tokens ( & mut self ) -> proc_macro2 :: TokenStream {
183183 // `impl Default for Atom` requires the empty string to be in the static set.
184184 // This also makes sure the set in non-empty,
185185 // which would cause divisions by zero in rust-phf.
@@ -224,7 +224,7 @@ impl AtomType {
224224 Some ( ref doc) => quote ! ( #[ doc = #doc] ) ,
225225 None => quote ! ( )
226226 } ;
227- let new_term = |string : & str | proc_macro2:: Term :: new ( string, proc_macro2:: Span :: call_site ( ) ) ;
227+ let new_term = |string : & str | proc_macro2:: Ident :: new ( string, proc_macro2:: Span :: call_site ( ) ) ;
228228 let static_set_name = new_term ( & format ! ( "{}StaticSet" , type_name) ) ;
229229 let type_name = new_term ( type_name) ;
230230 let macro_name = new_term ( & * self . macro_name ) ;
You can’t perform that action at this time.
0 commit comments