mirror of
https://github.com/pezkuwichain/serde.git
synced 2026-04-22 17:18:08 +00:00
feat(cargo): Update syntex
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
[package]
|
||||
name = "serde_codegen"
|
||||
version = "0.7.0"
|
||||
version = "0.7.1"
|
||||
authors = ["Erick Tryzelaar <erick.tryzelaar@gmail.com>"]
|
||||
license = "MIT/Apache-2.0"
|
||||
description = "Macros to auto-generate implementations for the serde framework"
|
||||
@@ -16,13 +16,13 @@ nightly-testing = ["clippy"]
|
||||
with-syntex = ["quasi/with-syntex", "quasi_codegen", "quasi_codegen/with-syntex", "syntex", "syntex_syntax"]
|
||||
|
||||
[build-dependencies]
|
||||
quasi_codegen = { version = "^0.7.0", optional = true }
|
||||
syntex = { version = "^0.29.0", optional = true }
|
||||
quasi_codegen = { version = "^0.8.0", optional = true }
|
||||
syntex = { version = "^0.30.0", optional = true }
|
||||
|
||||
[dependencies]
|
||||
aster = { version = "^0.13.1", default-features = false }
|
||||
aster = { version = "^0.14.0", default-features = false }
|
||||
clippy = { version = "^0.*", optional = true }
|
||||
quasi = { version = "^0.7.0", default-features = false }
|
||||
quasi_macros = { version = "^0.7.0", optional = true }
|
||||
syntex = { version = "^0.29.0", optional = true }
|
||||
syntex_syntax = { version = "^0.29.0", optional = true }
|
||||
quasi = { version = "^0.8.0", default-features = false }
|
||||
quasi_macros = { version = "^0.8.0", optional = true }
|
||||
syntex = { version = "^0.30.0", optional = true }
|
||||
syntex_syntax = { version = "^0.30.0", optional = true }
|
||||
|
||||
@@ -462,11 +462,11 @@ fn parse_lit_into_path(cx: &ExtCtxt, name: &str, lit: &ast::Lit) -> Result<ast::
|
||||
// error reporting, we'll first parse the string into a token tree. Then we'll update those
|
||||
// spans to say they're coming from a macro context that originally came from the attribute,
|
||||
// and then finally parse them into an expression.
|
||||
let tts = parse::parse_tts_from_source_str(
|
||||
let tts = panictry!(parse::parse_tts_from_source_str(
|
||||
format!("<serde {} expansion>", name),
|
||||
(*source).to_owned(),
|
||||
cx.cfg(),
|
||||
cx.parse_sess());
|
||||
cx.parse_sess()));
|
||||
|
||||
// Respan the spans to say they are all coming from this macro.
|
||||
let tts = Respanner { cx: cx }.fold_tts(&tts);
|
||||
|
||||
@@ -11,9 +11,11 @@ extern crate quasi;
|
||||
extern crate syntex;
|
||||
|
||||
#[cfg(feature = "with-syntex")]
|
||||
#[macro_use]
|
||||
extern crate syntex_syntax as syntax;
|
||||
|
||||
#[cfg(not(feature = "with-syntex"))]
|
||||
#[macro_use]
|
||||
extern crate syntax;
|
||||
|
||||
#[cfg(not(feature = "with-syntex"))]
|
||||
|
||||
Reference in New Issue
Block a user