Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update proc-macro2, syn, and quote to 1.0 #1798

Merged
merged 2 commits into from Aug 14, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
8 changes: 4 additions & 4 deletions futures-join-macro/Cargo.toml
Expand Up @@ -18,7 +18,7 @@ proc-macro = true
[features]

[dependencies]
proc-macro2 = "0.4"
proc-macro-hack = "0.5.3"
quote = "0.6"
syn = { version = "0.15.25", features = ["full"] }
proc-macro2 = "1.0"
proc-macro-hack = "0.5.9"
quote = "1.0"
syn = { version = "1.0", features = ["full"] }
4 changes: 2 additions & 2 deletions futures-join-macro/src/lib.rs
Expand Up @@ -11,7 +11,7 @@ extern crate proc_macro;
use proc_macro::TokenStream;
use proc_macro2::{Span, TokenStream as TokenStream2};
use proc_macro_hack::proc_macro_hack;
use quote::quote;
use quote::{format_ident, quote};
use syn::parse::{Parse, ParseStream};
use syn::{parenthesized, parse_quote, Expr, Ident, Token};

Expand Down Expand Up @@ -61,7 +61,7 @@ fn bind_futures(
.into_iter()
.enumerate()
.map(|(i, expr)| {
let name = Ident::new(&format!("_fut{}", i), span);
let name = format_ident!("_fut{}", i, span = span);
future_let_bindings.push(quote! {
// Move future into a local so that it is pinned in one place and
// is no longer accessible by the end user.
Expand Down
8 changes: 4 additions & 4 deletions futures-select-macro/Cargo.toml
Expand Up @@ -19,7 +19,7 @@ proc-macro = true
std = []

[dependencies]
proc-macro2 = "0.4"
proc-macro-hack = "0.5.3"
quote = "0.6"
syn = { version = "0.15.25", features = ["full"] }
proc-macro2 = "1.0"
proc-macro-hack = "0.5.9"
quote = "1.0"
syn = { version = "1.0", features = ["full"] }
4 changes: 2 additions & 2 deletions futures-select-macro/src/lib.rs
Expand Up @@ -11,7 +11,7 @@ extern crate proc_macro;
use proc_macro::TokenStream;
use proc_macro2::Span;
use proc_macro_hack::proc_macro_hack;
use quote::quote;
use quote::{format_ident, quote};
use syn::{parenthesized, parse_quote, Expr, Ident, Pat, Token};
use syn::parse::{Parse, ParseStream};

Expand Down Expand Up @@ -119,7 +119,7 @@ fn declare_result_enum(
// "_0", "_1", "_2"
let variant_names: Vec<Ident> =
(0..variants)
.map(|num| Ident::new(&format!("_{}", num), span))
.map(|num| format_ident!("_{}", num, span = span))
.collect();

let type_parameters = &variant_names;
Expand Down
2 changes: 1 addition & 1 deletion futures-util/Cargo.toml
Expand Up @@ -37,7 +37,7 @@ futures-io-preview = { path = "../futures-io", version = "=0.3.0-alpha.18", defa
futures-sink-preview = { path = "../futures-sink", version = "=0.3.0-alpha.18", default-features = false, optional = true }
futures-join-macro-preview = { path = "../futures-join-macro", version = "=0.3.0-alpha.18", default-features = false, optional = true }
futures-select-macro-preview = { path = "../futures-select-macro", version = "=0.3.0-alpha.18", default-features = false, optional = true }
proc-macro-hack = { version = "0.5", optional = true }
proc-macro-hack = { version = "0.5.9", optional = true }
proc-macro-nested = { version = "0.1.2", optional = true }
rand = { version = "0.7.0", optional = true }
slab = { version = "0.4", optional = true }
Expand Down