fix(rustup): Update to latest rust; silence some warnings

This commit is contained in:
Erick Tryzelaar 2015-12-24 10:54:02 -05:00
parent 8f08baf43a
commit 072ff149f5
6 changed files with 14 additions and 17 deletions

View File

@ -1,6 +1,6 @@
[package] [package]
name = "serde" name = "serde"
version = "0.6.6" version = "0.6.7"
authors = ["Erick Tryzelaar <erick.tryzelaar@gmail.com>"] authors = ["Erick Tryzelaar <erick.tryzelaar@gmail.com>"]
license = "MIT/Apache-2.0" license = "MIT/Apache-2.0"
description = "A generic serialization/deserialization framework" description = "A generic serialization/deserialization framework"

View File

@ -10,7 +10,7 @@
//! [github repository](https://github.com/serde-rs/serde) //! [github repository](https://github.com/serde-rs/serde)
#![doc(html_root_url="https://serde-rs.github.io/serde/serde")] #![doc(html_root_url="https://serde-rs.github.io/serde/serde")]
#![cfg_attr(feature = "nightly", feature(collections, core, enumset, nonzero, step_trait, zero_one))] #![cfg_attr(feature = "nightly", feature(collections, enumset, nonzero, step_trait, zero_one))]
#![deny(missing_docs)] #![deny(missing_docs)]

View File

@ -1,6 +1,6 @@
[package] [package]
name = "serde_codegen" name = "serde_codegen"
version = "0.6.6" version = "0.6.7"
authors = ["Erick Tryzelaar <erick.tryzelaar@gmail.com>"] authors = ["Erick Tryzelaar <erick.tryzelaar@gmail.com>"]
license = "MIT/Apache-2.0" license = "MIT/Apache-2.0"
description = "Macros to auto-generate implementations for the serde framework" description = "Macros to auto-generate implementations for the serde framework"
@ -15,12 +15,12 @@ nightly = ["quasi_macros"]
with-syntex = ["quasi/with-syntex", "quasi_codegen", "quasi_codegen/with-syntex", "syntex", "syntex_syntax"] with-syntex = ["quasi/with-syntex", "quasi_codegen", "quasi_codegen/with-syntex", "syntex", "syntex_syntax"]
[build-dependencies] [build-dependencies]
quasi_codegen = { verision = "^0.3.9", optional = true } quasi_codegen = { verision = "^0.3.11", optional = true }
syntex = { version = "^0.22.0", optional = true } syntex = { version = "^0.24.0", optional = true }
[dependencies] [dependencies]
aster = { version = "^0.9.0", default-features = false } aster = { version = "^0.9.2", default-features = false }
quasi = { verision = "^0.3.9", default-features = false } quasi = { verision = "^0.3.11", default-features = false }
quasi_macros = { version = "^0.3.9", optional = true } quasi_macros = { version = "^0.3.11", optional = true }
syntex = { version = "^0.22.0", optional = true } syntex = { version = "^0.24.0", optional = true }
syntex_syntax = { version = "^0.23.0", optional = true } syntex_syntax = { version = "^0.24.0", optional = true }

View File

@ -5,7 +5,6 @@ use aster;
use syntax::ast::{ use syntax::ast::{
self, self,
EnumDef, EnumDef,
Expr,
Ident, Ident,
Item, Item,
MetaItem, MetaItem,
@ -13,7 +12,6 @@ use syntax::ast::{
use syntax::codemap::Span; use syntax::codemap::Span;
use syntax::ext::base::{Annotatable, ExtCtxt}; use syntax::ext::base::{Annotatable, ExtCtxt};
use syntax::ext::build::AstBuilder; use syntax::ext::build::AstBuilder;
use syntax::owned_slice::OwnedSlice;
use syntax::ptr::P; use syntax::ptr::P;
use attr; use attr;
@ -187,7 +185,7 @@ fn deserialize_visitor(
let mut trait_generics = trait_generics.clone(); let mut trait_generics = trait_generics.clone();
let mut ty_params = forward_ty_params.clone(); let mut ty_params = forward_ty_params.clone();
ty_params.extend(trait_generics.ty_params.into_vec()); ty_params.extend(trait_generics.ty_params.into_vec());
trait_generics.ty_params = OwnedSlice::from_vec(ty_params); trait_generics.ty_params = P::from_vec(ty_params);
( (
builder.item().tuple_struct("__Visitor") builder.item().tuple_struct("__Visitor")

View File

@ -4,7 +4,6 @@ use syntax::ast::{
Ident, Ident,
MetaItem, MetaItem,
Item, Item,
Expr,
}; };
use syntax::ast; use syntax::ast;
use syntax::codemap::Span; use syntax::codemap::Span;

View File

@ -11,15 +11,15 @@ keywords = ["serialization"]
build = "build.rs" build = "build.rs"
[build-dependencies] [build-dependencies]
syntex = { version = "^0.22.0" } syntex = { version = "^0.24.0" }
syntex_syntax = { version = "^0.23.0" } syntex_syntax = { version = "^0.24.0" }
serde_codegen = { version = "*", path = "../serde_codegen", features = ["with-syntex"] } serde_codegen = { version = "*", path = "../serde_codegen", features = ["with-syntex"] }
[dev-dependencies] [dev-dependencies]
num = "^0.1.27" num = "^0.1.27"
rustc-serialize = "^0.3.16" rustc-serialize = "^0.3.16"
serde = { version = "*", path = "../serde", features = ["num-impls"] } serde = { version = "*", path = "../serde", features = ["num-impls"] }
syntex = "^0.22.0" syntex = "^0.24.0"
[[test]] [[test]]
name = "test" name = "test"