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/liballoc | |
| 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/liballoc')
| -rw-r--r-- | src/liballoc/lib.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/liballoc/lib.rs b/src/liballoc/lib.rs index bf870e101eb..7e250e130fa 100644 --- a/src/liballoc/lib.rs +++ b/src/liballoc/lib.rs @@ -74,8 +74,10 @@ extern crate core; extern crate libc; + // Allow testing this library +#[cfg(test)] extern crate debug; #[cfg(test)] extern crate sync; #[cfg(test)] extern crate native; #[cfg(test)] #[phase(syntax, link)] extern crate std; |
