Skip to content

Commit 4eb5177

Browse files
committed
Finish de-exporting cast, mutable, flate, repr, cleanup, reflect. Part of #3583.
1 parent 24265b1 commit 4eb5177

File tree

4 files changed

+3
-12
lines changed

4 files changed

+3
-12
lines changed

src/libcore/cast.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
33
#[abi = "rust-intrinsic"]
44
extern mod rusti {
5-
#[legacy_exports];
65
fn forget<T>(-x: T);
76
fn reinterpret_cast<T, U>(e: T) -> U;
87
}

src/libcore/core.rc

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -311,17 +311,11 @@ mod path;
311311
mod rand;
312312
mod run;
313313
mod sys;
314-
#[legacy_exports]
315314
mod cast;
316-
#[legacy_exports]
317315
mod mutable;
318-
#[legacy_exports]
319316
mod flate;
320-
#[legacy_exports]
321317
mod repr;
322-
#[legacy_exports]
323318
mod cleanup;
324-
#[legacy_exports]
325319
mod reflect;
326320

327321
// Modules supporting compiler-generated code

src/libcore/flate.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@ Simple compression
1111
use libc::{c_void, size_t, c_int};
1212

1313
extern mod rustrt {
14-
#[legacy_exports];
15-
1614
fn tdefl_compress_mem_to_heap(psrc_buf: *const c_void,
1715
src_buf_len: size_t,
1816
pout_len: *size_t,
@@ -29,7 +27,7 @@ const lz_fast : c_int = 0x1; // LZ with only one probe
2927
const lz_norm : c_int = 0x80; // LZ with 128 probes, "normal"
3028
const lz_best : c_int = 0xfff; // LZ with 4095 probes, "best"
3129

32-
fn deflate_bytes(bytes: &[const u8]) -> ~[u8] {
30+
pub fn deflate_bytes(bytes: &[const u8]) -> ~[u8] {
3331
do vec::as_const_buf(bytes) |b, len| {
3432
unsafe {
3533
let mut outsz : size_t = 0;
@@ -47,7 +45,7 @@ fn deflate_bytes(bytes: &[const u8]) -> ~[u8] {
4745
}
4846
}
4947

50-
fn inflate_bytes(bytes: &[const u8]) -> ~[u8] {
48+
pub fn inflate_bytes(bytes: &[const u8]) -> ~[u8] {
5149
do vec::as_const_buf(bytes) |b, len| {
5250
unsafe {
5351
let mut outsz : size_t = 0;

src/libcore/reflect.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ use libc::c_void;
1313
* data structure, and implement both `MovePtr` for it as well as `TyVisitor`;
1414
* then build a MovePtrAdaptor wrapped around your struct.
1515
*/
16-
trait MovePtr {
16+
pub trait MovePtr {
1717
fn move_ptr(adjustment: fn(*c_void) -> *c_void);
1818
}
1919

0 commit comments

Comments
 (0)