From 0fb31b2bc48ad9d08e20dbc26e4b9748cb0ef472 Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Tue, 28 Aug 2018 17:24:43 -0700 Subject: [PATCH] Don't enable `nightly` feature of `proc-macro2` This is no longer needed as of rustc 1.30.0 and the `proc-macro2` crate will now automatically detect whether it can use spans or not! --- crates/backend/Cargo.toml | 2 +- crates/macro-support/Cargo.toml | 2 +- crates/test-macro/Cargo.toml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/crates/backend/Cargo.toml b/crates/backend/Cargo.toml index dace168a..4fa91960 100644 --- a/crates/backend/Cargo.toml +++ b/crates/backend/Cargo.toml @@ -11,7 +11,7 @@ Backend code generation of the wasm-bindgen tool """ [features] -spans = ["proc-macro2/nightly"] +spans = [] extra-traits = ["syn/extra-traits"] [dependencies] diff --git a/crates/macro-support/Cargo.toml b/crates/macro-support/Cargo.toml index 295239f3..bf0e116d 100644 --- a/crates/macro-support/Cargo.toml +++ b/crates/macro-support/Cargo.toml @@ -11,7 +11,7 @@ The part of the implementation of the `#[wasm_bindgen]` attribute that is not in """ [features] -spans = ["proc-macro2/nightly", "wasm-bindgen-backend/spans"] +spans = ["wasm-bindgen-backend/spans"] extra-traits = ["syn/extra-traits"] [dependencies] diff --git a/crates/test-macro/Cargo.toml b/crates/test-macro/Cargo.toml index deba77af..da68c9ba 100644 --- a/crates/test-macro/Cargo.toml +++ b/crates/test-macro/Cargo.toml @@ -7,7 +7,7 @@ license = "MIT/Apache-2.0" repository = "https://github.com/rustwasm/wasm-bindgen" [dependencies] -proc-macro2 = { version = "0.4", features = ['nightly'] } +proc-macro2 = "0.4" quote = "0.6" [lib]