mirror of
https://github.com/pezkuwichain/serde.git
synced 2026-04-24 15:48:00 +00:00
Adapt for parser::PathParsingMode interface change in libsyntax
This was renamed upstream in https://github.com/rust-lang/rust/commit/6c44bea64435fd3859439a6ecab7758855a13f07 It's an incompatible change requiring new versions of syntex, aster, and quasi.
This commit is contained in:
@@ -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.9.0", optional = true }
|
||||
quasi_codegen = { version = "^0.10.0", optional = true }
|
||||
syntex = { version = "^0.31.0", optional = true }
|
||||
|
||||
[dependencies]
|
||||
aster = { version = "^0.15.0", default-features = false }
|
||||
aster = { version = "^0.16.0", default-features = false }
|
||||
clippy = { version = "^0.*", optional = true }
|
||||
quasi = { version = "^0.9.0", default-features = false }
|
||||
quasi_macros = { version = "^0.9.0", optional = true }
|
||||
syntex = { version = "^0.31.0", optional = true }
|
||||
syntex_syntax = { version = "^0.31.0", optional = true }
|
||||
quasi = { version = "^0.10.0", default-features = false }
|
||||
quasi_macros = { version = "^0.10.0", optional = true }
|
||||
syntex = { version = "^0.32.0", optional = true }
|
||||
syntex_syntax = { version = "^0.32.0", optional = true }
|
||||
|
||||
@@ -4,7 +4,7 @@ use syntax::attr;
|
||||
use syntax::codemap::Span;
|
||||
use syntax::ext::base::ExtCtxt;
|
||||
use syntax::fold::Folder;
|
||||
use syntax::parse::parser::PathParsingMode;
|
||||
use syntax::parse::parser::PathStyle;
|
||||
use syntax::parse::token::{self, InternedString};
|
||||
use syntax::parse;
|
||||
use syntax::print::pprust::{lit_to_string, meta_item_to_string};
|
||||
@@ -488,7 +488,7 @@ fn parse_lit_into_path(cx: &ExtCtxt, name: &str, lit: &ast::Lit) -> Result<ast::
|
||||
|
||||
let mut parser = parse::new_parser_from_tts(cx.parse_sess(), cx.cfg(), tts);
|
||||
|
||||
let path = match parser.parse_path(PathParsingMode::LifetimeAndTypesWithoutColons) {
|
||||
let path = match parser.parse_path(PathStyle::Type) {
|
||||
Ok(path) => path,
|
||||
Err(mut e) => {
|
||||
e.emit();
|
||||
|
||||
Reference in New Issue
Block a user