Merge pull request #236 from debris/rustup3
Update serde_codegen for rustc 1.8.0-nightly (ce4b75f25 2016-02-12)
This commit is contained in:
commit
39fa78e2ec
@ -17,5 +17,5 @@ num-impls = ["num-bigint", "num-complex", "num-rational"]
|
||||
num-rational = ["num/rational"]
|
||||
|
||||
[dependencies]
|
||||
clippy = { version = "^0.0.39", optional = true }
|
||||
clippy = { version = "^0.0.41", optional = true }
|
||||
num = { version = "^0.1.27", default-features = false }
|
||||
|
@ -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.5.0", optional = true }
|
||||
syntex = { version = "^0.27.0", optional = true }
|
||||
quasi_codegen = { version = "^0.6.0", optional = true }
|
||||
syntex = { version = "^0.28.0", optional = true }
|
||||
|
||||
[dependencies]
|
||||
aster = { version = "^0.11.0", default-features = false }
|
||||
clippy = { version = "^0.0.39", optional = true }
|
||||
quasi = { version = "^0.5.0", default-features = false }
|
||||
quasi_macros = { version = "^0.5.0", optional = true }
|
||||
syntex = { version = "^0.27.0", optional = true }
|
||||
syntex_syntax = { version = "^0.27.0", optional = true }
|
||||
aster = { version = "^0.12.0", default-features = false }
|
||||
clippy = { version = "^0.0.41", optional = true }
|
||||
quasi = { version = "^0.6.0", default-features = false }
|
||||
quasi_macros = { version = "^0.6.0", optional = true }
|
||||
syntex = { version = "^0.28.0", optional = true }
|
||||
syntex_syntax = { version = "^0.28.0", optional = true }
|
||||
|
@ -393,7 +393,7 @@ fn deserialize_seq(
|
||||
struct_path: ast::Path,
|
||||
fields: usize,
|
||||
) -> P<ast::Expr> {
|
||||
let let_values: Vec<P<ast::Stmt>> = (0 .. fields)
|
||||
let let_values: Vec<ast::Stmt> = (0 .. fields)
|
||||
.map(|i| {
|
||||
let name = builder.id(format!("__field{}", i));
|
||||
quote_stmt!(cx,
|
||||
@ -427,7 +427,7 @@ fn deserialize_struct_as_seq(
|
||||
struct_path: ast::Path,
|
||||
fields: &[ast::StructField],
|
||||
) -> Result<P<ast::Expr>, ()> {
|
||||
let let_values: Vec<P<ast::Stmt>> = (0 .. fields.len())
|
||||
let let_values: Vec<ast::Stmt> = (0 .. fields.len())
|
||||
.map(|i| {
|
||||
let name = builder.id(format!("__field{}", i));
|
||||
quote_stmt!(cx,
|
||||
@ -930,7 +930,7 @@ fn deserialize_struct_visitor(
|
||||
builder: &aster::AstBuilder,
|
||||
struct_path: ast::Path,
|
||||
fields: &[ast::StructField],
|
||||
) -> Result<(Vec<P<ast::Item>>, P<ast::Stmt>, P<ast::Expr>), ()> {
|
||||
) -> Result<(Vec<P<ast::Item>>, ast::Stmt, P<ast::Expr>), ()> {
|
||||
let field_visitor = deserialize_field_visitor(
|
||||
cx,
|
||||
builder,
|
||||
@ -977,7 +977,7 @@ fn deserialize_map(
|
||||
.collect();
|
||||
|
||||
// Declare each field.
|
||||
let let_values: Vec<P<ast::Stmt>> = field_names.iter()
|
||||
let let_values: Vec<ast::Stmt> = field_names.iter()
|
||||
.map(|field_name| quote_stmt!(cx, let mut $field_name = None;).unwrap())
|
||||
.collect();
|
||||
|
||||
@ -994,7 +994,7 @@ fn deserialize_map(
|
||||
|
||||
let field_attrs = try!(field::struct_field_attrs(cx, builder, fields));
|
||||
|
||||
let extract_values: Vec<P<ast::Stmt>> = field_names.iter()
|
||||
let extract_values: Vec<ast::Stmt> = field_names.iter()
|
||||
.zip(field_attrs.iter())
|
||||
.map(|(field_name, field_attr)| {
|
||||
let missing_expr = if field_attr.use_default() {
|
||||
|
@ -16,7 +16,7 @@ plugin = true
|
||||
nightly-testing = ["clippy", "serde/nightly-testing", "serde_codegen/nightly-testing"]
|
||||
|
||||
[dependencies]
|
||||
clippy = { version = "^0.0.39", optional = true }
|
||||
clippy = { version = "^0.0.41", optional = true }
|
||||
serde_codegen = { version = "^0.6.12", path = "../serde_codegen", default-features = false, features = ["nightly"] }
|
||||
|
||||
[dev-dependencies]
|
||||
|
@ -14,18 +14,18 @@ build = "build.rs"
|
||||
nightly-testing = ["clippy", "serde/nightly-testing", "serde_codegen/nightly-testing"]
|
||||
|
||||
[build-dependencies]
|
||||
syntex = { version = "^0.27.0" }
|
||||
syntex_syntax = { version = "^0.27.0" }
|
||||
syntex = { version = "^0.28.0" }
|
||||
syntex_syntax = { version = "^0.28.0" }
|
||||
serde_codegen = { version = "^0.6.12", path = "../serde_codegen", features = ["with-syntex"] }
|
||||
|
||||
[dev-dependencies]
|
||||
num = "^0.1.26"
|
||||
rustc-serialize = "^0.3.16"
|
||||
serde = { version = "*", path = "../serde", features = ["num-impls"] }
|
||||
syntex = "^0.27.0"
|
||||
syntex = "^0.28.0"
|
||||
|
||||
[dependencies]
|
||||
clippy = { version = "^0.0.39", optional = true }
|
||||
clippy = { version = "^0.0.41", optional = true }
|
||||
|
||||
[[test]]
|
||||
name = "test"
|
||||
|
Loading…
Reference in New Issue
Block a user