diff options
| author | bors <bors@rust-lang.org> | 2014-05-27 21:46:46 -0700 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2014-05-27 21:46:46 -0700 |
| commit | 1dea8834cccc5a7c3b4f7a5e2872010d11ced628 (patch) | |
| tree | f7acde44daf79dcc27a74b861b0e9308cd891b55 /src/libworkcache | |
| parent | 73dac7e4e61aa88cfc98433b61ba131b38af978d (diff) | |
| parent | b53454e2e413ac58da20933968cb4a86a3c7c476 (diff) | |
| download | rust-1dea8834cccc5a7c3b4f7a5e2872010d11ced628.tar.gz rust-1dea8834cccc5a7c3b4f7a5e2872010d11ced628.zip | |
auto merge of #14364 : alexcrichton/rust/libdebug, r=brson
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.rs | 6 |
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())) } |
