Skip to content

Commit 89f739d

Browse files
committed
Update syn to 0.12 and quote to 0.4
1 parent c71b68c commit 89f739d

File tree

3 files changed

+170
-186
lines changed

3 files changed

+170
-186
lines changed

html5ever/Cargo.toml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,5 +41,6 @@ rustc-test = "0.2"
4141
typed-arena = "1.3.0"
4242

4343
[build-dependencies]
44-
quote = "0.3.3"
45-
syn = { version = "0.11", features = ["full", "visit"] }
44+
quote = "0.4"
45+
syn = { version = "0.12", features = ["extra-traits", "full", "fold"] }
46+
proc-macro2 = "0.2"

html5ever/build.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88
// except according to those terms.
99

1010
#[macro_use] extern crate quote;
11-
extern crate syn;
11+
#[macro_use] extern crate syn;
12+
extern crate proc_macro2;
1213

1314
use std::env;
1415
use std::path::Path;
@@ -20,7 +21,7 @@ fn main() {
2021
let manifest_dir = env::var("CARGO_MANIFEST_DIR").unwrap();
2122

2223
let rules_rs = Path::new(&manifest_dir).join("src/tree_builder/rules.rs");
23-
match_token::expand_match_tokens(
24+
match_token::expand(
2425
&rules_rs,
2526
&Path::new(&env::var("OUT_DIR").unwrap()).join("rules.rs"));
2627

0 commit comments

Comments
 (0)