Update to proc-macro2 with lex error spans

This commit is contained in:
David Tolnay 2021-04-01 00:07:54 -04:00
parent c1d9d87b99
commit 01462b9291
No known key found for this signature in database
GPG Key ID: F9BA143B95FF6D82
7 changed files with 15 additions and 15 deletions

View File

@ -18,10 +18,10 @@ parallel = ["cc/parallel"]
cc = "1.0.49" cc = "1.0.49"
codespan-reporting = "0.11" codespan-reporting = "0.11"
lazy_static = "1.4" lazy_static = "1.4"
proc-macro2 = { version = "1.0.17", default-features = false, features = ["span-locations"] } proc-macro2 = { version = "1.0.26", default-features = false, features = ["span-locations"] }
quote = { version = "1.0", default-features = false } quote = { version = "1.0", default-features = false }
scratch = "1.0" scratch = "1.0"
syn = { version = "1.0.57", default-features = false, features = ["parsing", "printing", "clone-impls", "full"] } syn = { version = "1.0.68", default-features = false, features = ["parsing", "printing", "clone-impls", "full"] }
[dev-dependencies] [dev-dependencies]
cxx-gen = { version = "0.7", path = "../lib" } cxx-gen = { version = "0.7", path = "../lib" }

View File

@ -18,9 +18,9 @@ path = "src/main.rs"
[dependencies] [dependencies]
clap = "2.33" clap = "2.33"
codespan-reporting = "0.11" codespan-reporting = "0.11"
proc-macro2 = { version = "1.0.17", default-features = false, features = ["span-locations"] } proc-macro2 = { version = "1.0.26", default-features = false, features = ["span-locations"] }
quote = { version = "1.0", default-features = false } quote = { version = "1.0", default-features = false }
syn = { version = "1.0.57", default-features = false, features = ["parsing", "printing", "clone-impls", "full"] } syn = { version = "1.0.68", default-features = false, features = ["parsing", "printing", "clone-impls", "full"] }
[package.metadata.docs.rs] [package.metadata.docs.rs]
targets = ["x86_64-unknown-linux-gnu"] targets = ["x86_64-unknown-linux-gnu"]

View File

@ -13,9 +13,9 @@ categories = ["development-tools::ffi"]
[dependencies] [dependencies]
cc = "1.0.49" cc = "1.0.49"
codespan-reporting = "0.11" codespan-reporting = "0.11"
proc-macro2 = { version = "1.0.17", default-features = false, features = ["span-locations"] } proc-macro2 = { version = "1.0.26", default-features = false, features = ["span-locations"] }
quote = { version = "1.0", default-features = false } quote = { version = "1.0", default-features = false }
syn = { version = "1.0.57", default-features = false, features = ["parsing", "printing", "clone-impls", "full"] } syn = { version = "1.0.68", default-features = false, features = ["parsing", "printing", "clone-impls", "full"] }
[package.metadata.docs.rs] [package.metadata.docs.rs]
targets = ["x86_64-unknown-linux-gnu"] targets = ["x86_64-unknown-linux-gnu"]

View File

@ -17,7 +17,7 @@ proc-macro = true
[dependencies] [dependencies]
proc-macro2 = "1.0" proc-macro2 = "1.0"
quote = "1.0.4" quote = "1.0.4"
syn = { version = "1.0.57", features = ["full"] } syn = { version = "1.0.68", features = ["full"] }
[dev-dependencies] [dev-dependencies]
cxx = { version = "1.0", path = ".." } cxx = { version = "1.0", path = ".." }

4
third-party/BUCK vendored
View File

@ -41,7 +41,7 @@ rust_library(
rust_library( rust_library(
name = "proc-macro2", name = "proc-macro2",
srcs = glob(["vendor/proc-macro2-1.0.24/src/**"]), srcs = glob(["vendor/proc-macro2-1.0.26/src/**"]),
visibility = ["PUBLIC"], visibility = ["PUBLIC"],
features = [ features = [
"proc-macro", "proc-macro",
@ -72,7 +72,7 @@ rust_library(
rust_library( rust_library(
name = "syn", name = "syn",
srcs = glob(["vendor/syn-1.0.67/src/**"]), srcs = glob(["vendor/syn-1.0.68/src/**"]),
visibility = ["PUBLIC"], visibility = ["PUBLIC"],
features = [ features = [
"clone-impls", "clone-impls",

4
third-party/BUILD vendored
View File

@ -45,7 +45,7 @@ rust_library(
rust_library( rust_library(
name = "proc-macro2", name = "proc-macro2",
srcs = glob(["vendor/proc-macro2-1.0.24/src/**"]), srcs = glob(["vendor/proc-macro2-1.0.26/src/**"]),
crate_features = [ crate_features = [
"proc-macro", "proc-macro",
"span-locations", "span-locations",
@ -76,7 +76,7 @@ rust_library(
rust_library( rust_library(
name = "syn", name = "syn",
srcs = glob(["vendor/syn-1.0.67/src/**"]), srcs = glob(["vendor/syn-1.0.68/src/**"]),
crate_features = [ crate_features = [
"clone-impls", "clone-impls",
"derive", "derive",

8
third-party/Cargo.lock generated vendored
View File

@ -210,9 +210,9 @@ checksum = "3831453b3449ceb48b6d9c7ad7c96d5ea673e9b470a1dc578c2ce6521230884c"
[[package]] [[package]]
name = "proc-macro2" name = "proc-macro2"
version = "1.0.24" version = "1.0.26"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1e0704ee1a7e00d7bb417d0770ea303c1bccbabf0ef1667dae92b5967f5f8a71" checksum = "a152013215dca273577e18d2bf00fa862b89b24169fb78c4c95aeb07992c9cec"
dependencies = [ dependencies = [
"unicode-xid", "unicode-xid",
] ]
@ -283,9 +283,9 @@ checksum = "8ea5119cdb4c55b55d432abb513a0429384878c15dde60cc77b1c99de1a95a6a"
[[package]] [[package]]
name = "syn" name = "syn"
version = "1.0.67" version = "1.0.68"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "6498a9efc342871f91cc2d0d694c674368b4ceb40f62b65a7a08c3792935e702" checksum = "3ce15dd3ed8aa2f8eeac4716d6ef5ab58b6b9256db41d7e1a0224c2788e8fd87"
dependencies = [ dependencies = [
"proc-macro2", "proc-macro2",
"quote", "quote",