Skip to content

Commit 0cf4bc5

Browse files
committed
fix fallout from libsyntax enumpocalypse
1 parent f913dce commit 0cf4bc5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/libsyntax_ext/deriving/clone.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
use deriving::generic::*;
1212
use deriving::generic::ty::*;
1313

14-
use syntax::ast::{self, MetaItem, Expr, VariantData};
14+
use syntax::ast::{Expr, ItemKind, Generics, MetaItem, VariantData};
1515
use syntax::attr::{self, AttrMetaMethods};
1616
use syntax::codemap::Span;
1717
use syntax::ext::base::{ExtCtxt, Annotatable};
@@ -41,8 +41,8 @@ pub fn expand_deriving_clone(cx: &mut ExtCtxt,
4141
match *item {
4242
Annotatable::Item(ref item) => {
4343
match item.node {
44-
ast::ItemStruct(_, ast::Generics { ref ty_params, .. }) |
45-
ast::ItemEnum(_, ast::Generics { ref ty_params, .. })
44+
ItemKind::Struct(_, Generics { ref ty_params, .. }) |
45+
ItemKind::Enum(_, Generics { ref ty_params, .. })
4646
if ty_params.is_empty() && attr::contains_name(&item.attrs, "derive_Copy") => {
4747

4848
bounds = vec![Literal(path_std!(cx, core::marker::Copy))];

0 commit comments

Comments
 (0)