Bump syntex to 0.48

This commit is contained in:
David Tolnay 2016-11-02 08:32:30 -07:00
parent f430d9d1c8
commit 54802983b8
No known key found for this signature in database
GPG Key ID: F9BA143B95FF6D82
2 changed files with 3 additions and 4 deletions

View File

@ -26,5 +26,5 @@ post-expansion = "0.1.0"
quote = "0.3"
serde_codegen_internals = { version = "=0.10.0", default-features = false, path = "../serde_codegen_internals" }
syn = { version = "0.9", features = ["aster", "visit"] }
syntex = { version = "^0.46.0", optional = true }
syntex_syntax = { version = "^0.46.0", optional = true }
syntex = { version = "^0.48.0", optional = true }
syntex_syntax = { version = "^0.48.0", optional = true }

View File

@ -171,9 +171,8 @@ macro_rules! shim {
use syntax::parse;
let name = stringify!($name).to_string();
let cfg = Vec::new();
let sess = cx.parse_sess;
let impl_item = parse::parse_item_from_source_str(name, expanded, cfg, sess);
let impl_item = parse::parse_item_from_source_str(name, expanded, sess);
push(::syntax::ext::base::Annotatable::Item(impl_item.unwrap().unwrap()));
}
};