refactor(codegen): Add ContainerAttrs::from_items

This commit is contained in:
Erick Tryzelaar
2016-02-08 10:09:18 -08:00
parent 0bd380ee23
commit 807224d231
3 changed files with 50 additions and 85 deletions
+1 -1
View File
@@ -86,7 +86,7 @@ fn serialize_body(
) -> Result<P<ast::Expr>, Error> {
// Note: While we don't have any container attributes, we still want to try to
// parse them so we can report a proper error if we get passed an unknown attribute.
let _ = try!(attr::get_container_attrs(cx, item));
let _container_attrs = try!(attr::ContainerAttrs::from_item(cx, item));
match item.node {
ast::ItemStruct(ref variant_data, _) => {