From b53454e2e413ac58da20933968cb4a86a3c7c476 Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Thu, 22 May 2014 11:28:01 -0700 Subject: 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] --- src/libworkcache/lib.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/libworkcache') 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())) } -- cgit 1.4.1-3-g733a5