about summary refs log tree commit diff
path: root/src/librustc_front
diff options
context:
space:
mode:
authorOliver Schneider <git-spam-no-reply9815368754983@oli-obk.de>2016-02-08 15:34:47 +0100
committerOliver Schneider <git-spam-no-reply9815368754983@oli-obk.de>2016-02-11 12:34:48 +0100
commit79fa657abc6b8885ceb4023099b4e0026c5ef28f (patch)
tree47b5b4bada4def35e5da8f19b4af309f887c8421 /src/librustc_front
parent8516ba367d1f51318ce373fe9b60650c82ded1e9 (diff)
downloadrust-79fa657abc6b8885ceb4023099b4e0026c5ef28f.tar.gz
rust-79fa657abc6b8885ceb4023099b4e0026c5ef28f.zip
[breaking-change] don't glob export ast::Decl_ variants
Diffstat (limited to 'src/librustc_front')
-rw-r--r--src/librustc_front/lowering.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/librustc_front/lowering.rs b/src/librustc_front/lowering.rs
index 11bbc14b7b7..165982abc05 100644
--- a/src/librustc_front/lowering.rs
+++ b/src/librustc_front/lowering.rs
@@ -247,11 +247,11 @@ pub fn lower_arm(lctx: &LoweringContext, arm: &Arm) -> hir::Arm {
 
 pub fn lower_decl(lctx: &LoweringContext, d: &Decl) -> P<hir::Decl> {
     match d.node {
-        DeclLocal(ref l) => P(Spanned {
+        DeclKind::Local(ref l) => P(Spanned {
             node: hir::DeclLocal(lower_local(lctx, l)),
             span: d.span,
         }),
-        DeclItem(ref it) => P(Spanned {
+        DeclKind::Item(ref it) => P(Spanned {
             node: hir::DeclItem(lower_item_id(lctx, it)),
             span: d.span,
         }),