about summary refs log tree commit diff
path: root/src/libworkcache
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2014-05-22 11:28:01 -0700
committerAlex Crichton <alex@alexcrichton.com>2014-05-27 21:44:51 -0700
commitb53454e2e413ac58da20933968cb4a86a3c7c476 (patch)
tree049f02aae3a1c7be395a3b7467ae31af92def081 /src/libworkcache
parent911cc9c35234ab12a4b9a6fc1cb35b52556f242d (diff)
downloadrust-b53454e2e413ac58da20933968cb4a86a3c7c476.tar.gz
rust-b53454e2e413ac58da20933968cb4a86a3c7c476.zip
Move std::{reflect,repr,Poly} to a libdebug crate
This commit moves reflection (as well as the {:?} format modifier) to a new
libdebug crate, all of which is marked experimental.

This is a breaking change because it now requires the debug crate to be
explicitly linked if the :? format qualifier is used. This means that any code
using this feature will have to add `extern crate debug;` to the top of the
crate. Any code relying on reflection will also need to do this.

Closes #12019

[breaking-change]
Diffstat (limited to 'src/libworkcache')
-rw-r--r--src/libworkcache/lib.rs6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/libworkcache/lib.rs b/src/libworkcache/lib.rs
index 9a82c411437..064979fa277 100644
--- a/src/libworkcache/lib.rs
+++ b/src/libworkcache/lib.rs
@@ -412,8 +412,7 @@ impl<'a> Prep<'a> {
             &'a self, blk: proc(&mut Exec):Send -> T) -> Work<'a, T> {
         let mut bo = Some(blk);
 
-        debug!("exec_work: looking up {} and {:?}", self.fn_name,
-               self.declared_inputs);
+        debug!("exec_work: looking up {}", self.fn_name);
         let cached = {
             let db = self.ctxt.db.deref().read();
             db.deref().prepare(self.fn_name, &self.declared_inputs)
@@ -425,8 +424,7 @@ impl<'a> Prep<'a> {
                self.all_fresh("discovered input", disc_in) &&
                self.all_fresh("discovered output", disc_out) => {
                 debug!("Cache hit!");
-                debug!("Trying to decode: {:?} / {:?} / {}",
-                       disc_in, disc_out, *res);
+                debug!("Trying to decode: {}", *res);
                 Work::from_value(json_decode(res.as_slice()))
             }