Update syntex to 0.37

This commit is contained in:
David Tolnay
2016-07-02 18:12:26 -07:00
parent 47c7387279
commit d450de1482
11 changed files with 47 additions and 42 deletions
+2 -1
View File
@@ -5,6 +5,7 @@ use syntax::codemap::Span;
use syntax::ext::base::{Annotatable, ExtCtxt};
use syntax::parse::token::InternedString;
use syntax::ptr::P;
use syntax::tokenstream::TokenTree;
use bound;
use internals::ast::{Body, Field, Item, Style, Variant};
@@ -471,7 +472,7 @@ fn deserialize_newtype_struct(
type_path: &ast::Path,
impl_generics: &ast::Generics,
field: &Field,
) -> Vec<ast::TokenTree> {
) -> Vec<TokenTree> {
let value = match field.attrs.deserialize_with() {
None => {
let field_ty = &field.ty;