Skip to content

Commit ed05c7b

Browse files
authored
Fix compile on latest nightly (#489)
1 parent 1baf8f3 commit ed05c7b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

77 files changed

+372
-374
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Import JavaScript things into Rust and export Rust things to JavaScript.
2020
`src/lib.rs`:
2121

2222
```rust
23-
#![feature(proc_macro, wasm_custom_section, wasm_import_module)]
23+
#![feature(use_extern_macros, wasm_custom_section, wasm_import_module)]
2424

2525
extern crate wasm_bindgen;
2626
use wasm_bindgen::prelude::*;

crates/backend/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ extra-traits = ["syn/extra-traits"]
1616

1717
[dependencies]
1818
quote = '0.6'
19-
proc-macro2 = "0.4"
19+
proc-macro2 = "0.4.8"
2020
wasm-bindgen-shared = { path = "../shared", version = "=0.2.11" }
2121
syn = { version = '0.14', features = ['full', 'visit-mut'] }
2222
serde_json = "1.0"

crates/macro/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,6 @@ xxx_debug_only_print_generated_code = []
2020
[dependencies]
2121
syn = { version = '0.14', features = ['full'] }
2222
quote = '0.6'
23-
proc-macro2 = "0.4.4"
23+
proc-macro2 = "0.4.8"
2424
wasm-bindgen-backend = { path = "../backend", version = "=0.2.11" }
2525
wasm-bindgen-shared = { path = "../shared", version = "=0.2.11" }

crates/macro/src/lib.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
#![feature(proc_macro)]
2-
31
extern crate proc_macro;
42
extern crate proc_macro2;
53
extern crate quote;

crates/typescript/Cargo.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ serde = "1.0"
88
serde_derive = "1.0"
99
serde_json = "1.0"
1010

11-
proc-macro2 = "0.4"
11+
proc-macro2 = "0.4.8"
1212
quote = "0.6"
13-
syn = { version = "0.14", default-features = false }
14-
wasm-bindgen = { path = "../..", default-features = false }
15-
wasm-bindgen-backend = { path = "../backend", default-features = false }
13+
syn = { version = "0.14", default-features = false }
14+
wasm-bindgen = { path = "../..", default-features = false }
15+
wasm-bindgen-backend = { path = "../backend", default-features = false }

crates/web-sys/tests/all/event.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ fn event() {
66
.file(
77
"src/lib.rs",
88
r#"
9-
#![feature(proc_macro, wasm_custom_section)]
9+
#![feature(use_extern_macros, wasm_custom_section)]
1010
extern crate wasm_bindgen;
1111
use wasm_bindgen::prelude::*;
1212
extern crate web_sys;

crates/web-sys/tests/all/headers.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ fn headers() {
66
.file(
77
"src/lib.rs",
88
r#"
9-
#![feature(proc_macro, wasm_custom_section)]
9+
#![feature(use_extern_macros, wasm_custom_section)]
1010
extern crate wasm_bindgen;
1111
use wasm_bindgen::prelude::*;
1212
extern crate web_sys;

crates/web-sys/tests/all/response.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ fn response() {
66
.file(
77
"src/lib.rs",
88
r#"
9-
#![feature(proc_macro, wasm_custom_section)]
9+
#![feature(use_extern_macros, wasm_custom_section)]
1010
extern crate wasm_bindgen;
1111
use wasm_bindgen::prelude::*;
1212
extern crate web_sys;

crates/webidl/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ wasm-bindgen-test-project-builder = { path = "../test-project-builder", version
1010
failure = "0.1"
1111
heck = "0.3"
1212
log = "0.4.1"
13-
proc-macro2 = "0.4"
13+
proc-macro2 = "0.4.8"
1414
quote = '0.6'
1515
syn = { version = '0.14', features = ['full'] }
1616
wasm-bindgen-backend = { version = "=0.2.11", path = "../backend" }

crates/webidl/tests/all/consts.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ fn bool() {
2424
.file(
2525
"src/lib.rs",
2626
r#"
27-
#![feature(proc_macro, wasm_custom_section, wasm_import_module)]
27+
#![feature(use_extern_macros, wasm_custom_section, wasm_import_module)]
2828
extern crate wasm_bindgen;
2929
use wasm_bindgen::prelude::*;
3030
@@ -93,7 +93,7 @@ fn ints() {
9393
.file(
9494
"src/lib.rs",
9595
r#"
96-
#![feature(proc_macro, wasm_custom_section, wasm_import_module)]
96+
#![feature(use_extern_macros, wasm_custom_section, wasm_import_module)]
9797
extern crate wasm_bindgen;
9898
use wasm_bindgen::prelude::*;
9999
@@ -160,7 +160,7 @@ fn floats() {
160160
.file(
161161
"src/lib.rs",
162162
r#"
163-
#![feature(proc_macro, wasm_custom_section, wasm_import_module)]
163+
#![feature(use_extern_macros, wasm_custom_section, wasm_import_module)]
164164
extern crate wasm_bindgen;
165165
use wasm_bindgen::prelude::*;
166166

0 commit comments

Comments
 (0)