Merge branch 'feature/inhibit' of https://github.com/dtolnay/serde into dtolnay-feature/inhibit

This commit is contained in:
Erick Tryzelaar
2016-04-12 08:41:02 -07:00
3 changed files with 238 additions and 24 deletions
+1 -1
View File
@@ -377,7 +377,7 @@ fn get_renames(cx: &ExtCtxt,
Ok((ser_name, de_name))
}
fn get_serde_meta_items(attr: &ast::Attribute) -> Option<&[P<ast::MetaItem>]> {
pub fn get_serde_meta_items(attr: &ast::Attribute) -> Option<&[P<ast::MetaItem>]> {
match attr.node.value.node {
ast::MetaItemKind::List(ref name, ref items) if name == &"serde" => {
attr::mark_used(&attr);