summary refs log tree commit diff
path: root/src/libsyntax/print
diff options
context:
space:
mode:
authorPatrick Walton <pcwalton@mimiga.net>2012-12-05 15:06:54 -0800
committerPatrick Walton <pcwalton@mimiga.net>2012-12-05 15:07:48 -0800
commit1282fc80740b5c462a094c45f65cb1ce0c1d7756 (patch)
treedb00ba38f707047b7e16cce8040aa72a0e7c7a3a /src/libsyntax/print
parenta05ba09d904b366f467479cb022c76f287befa43 (diff)
downloadrust-1282fc80740b5c462a094c45f65cb1ce0c1d7756.tar.gz
rust-1282fc80740b5c462a094c45f65cb1ce0c1d7756.zip
librustc: Hook borrow check loan checking up to the moves-based-on-type infrastructure. rs=helps-unbreak-the-build
Diffstat (limited to 'src/libsyntax/print')
-rw-r--r--src/libsyntax/print/pp.rs6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/libsyntax/print/pp.rs b/src/libsyntax/print/pp.rs
index a51089334f0..3e9fe805260 100644
--- a/src/libsyntax/print/pp.rs
+++ b/src/libsyntax/print/pp.rs
@@ -461,7 +461,11 @@ impl printer {
     fn print(x: token, L: int) {
         debug!("print %s %d (remaining line space=%d)", tok_str(x), L,
                self.space);
-        log(debug, buf_str(self.token, self.size, self.left, self.right, 6u));
+        log(debug, buf_str(copy self.token,
+                           copy self.size,
+                           self.left,
+                           self.right,
+                           6u));
         match x {
           BEGIN(b) => {
             if L > self.space {