Skip to content

Commit ae2836d

Browse files
author
bors-servo
authored
Auto merge of #207 - Eijebong:bump, r=jdm
Update quote, proc-macro2 and bump version in codegen <!-- Reviewable:start --> This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/string-cache/207) <!-- Reviewable:end -->
2 parents f6be9c3 + f26c0f6 commit ae2836d

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

string-cache-codegen/Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22

33
name = "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
55
authors = [ "The Servo Project Developers" ]
66
description = "A codegen library for string-cache, developed as part of the Servo project."
77
license = "MIT / Apache-2.0"
@@ -16,5 +16,5 @@ path = "lib.rs"
1616
string_cache_shared = {path = "../shared", version = "0.3"}
1717
phf_generator = "0.7.15"
1818
phf_shared = "0.7.4"
19-
proc-macro2 = "0.3.1"
20-
quote = "0.5.1"
19+
proc-macro2 = "0.4"
20+
quote = "0.6"

string-cache-codegen/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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);

0 commit comments

Comments
 (0)