about summary refs log tree commit diff
path: root/src/libsyntax/print/pprust.rs
diff options
context:
space:
mode:
authorOliver Schneider <git-spam-no-reply9815368754983@oli-obk.de>2016-02-08 15:27:08 +0100
committerOliver Schneider <git-spam-no-reply9815368754983@oli-obk.de>2016-02-11 12:34:48 +0100
commit8516ba367d1f51318ce373fe9b60650c82ded1e9 (patch)
treed3feaa20d76319d79526412296665d504c062345 /src/libsyntax/print/pprust.rs
parent243a30c9319b56e1be2b9ff2f9ed9e0d7583e2d1 (diff)
downloadrust-8516ba367d1f51318ce373fe9b60650c82ded1e9.tar.gz
rust-8516ba367d1f51318ce373fe9b60650c82ded1e9.zip
[breaking-change] don't glob export ast::CaptureClause variants
Diffstat (limited to 'src/libsyntax/print/pprust.rs')
-rw-r--r--src/libsyntax/print/pprust.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libsyntax/print/pprust.rs b/src/libsyntax/print/pprust.rs
index 9d5bd798ec7..9b8e16bbd38 100644
--- a/src/libsyntax/print/pprust.rs
+++ b/src/libsyntax/print/pprust.rs
@@ -2741,11 +2741,11 @@ impl<'a> State<'a> {
         }
     }
 
-    pub fn print_capture_clause(&mut self, capture_clause: ast::CaptureClause)
+    pub fn print_capture_clause(&mut self, capture_clause: ast::CaptureBy)
                                 -> io::Result<()> {
         match capture_clause {
-            ast::CaptureByValue => self.word_space("move"),
-            ast::CaptureByRef => Ok(()),
+            ast::CaptureBy::Value => self.word_space("move"),
+            ast::CaptureBy::Ref => Ok(()),
         }
     }