File tree Expand file tree Collapse file tree 4 files changed +3
-12
lines changed Expand file tree Collapse file tree 4 files changed +3
-12
lines changed Original file line number Diff line number Diff line change 2
2
3
3
#[ abi = "rust-intrinsic" ]
4
4
extern mod rusti {
5
- #[ legacy_exports] ;
6
5
fn forget < T > ( -x : T ) ;
7
6
fn reinterpret_cast < T , U > ( e : T ) -> U ;
8
7
}
Original file line number Diff line number Diff line change @@ -311,17 +311,11 @@ mod path;
311
311
mod rand;
312
312
mod run;
313
313
mod sys;
314
- #[legacy_exports]
315
314
mod cast;
316
- #[legacy_exports]
317
315
mod mutable;
318
- #[legacy_exports]
319
316
mod flate;
320
- #[legacy_exports]
321
317
mod repr;
322
- #[legacy_exports]
323
318
mod cleanup;
324
- #[legacy_exports]
325
319
mod reflect;
326
320
327
321
// Modules supporting compiler-generated code
Original file line number Diff line number Diff line change @@ -11,8 +11,6 @@ Simple compression
11
11
use libc:: { c_void, size_t, c_int} ;
12
12
13
13
extern mod rustrt {
14
- #[ legacy_exports] ;
15
-
16
14
fn tdefl_compress_mem_to_heap ( psrc_buf : * const c_void ,
17
15
src_buf_len : size_t ,
18
16
pout_len : * size_t ,
@@ -29,7 +27,7 @@ const lz_fast : c_int = 0x1; // LZ with only one probe
29
27
const lz_norm : c_int = 0x80 ; // LZ with 128 probes, "normal"
30
28
const lz_best : c_int = 0xfff ; // LZ with 4095 probes, "best"
31
29
32
- fn deflate_bytes ( bytes : & [ const u8 ] ) -> ~[ u8 ] {
30
+ pub fn deflate_bytes ( bytes : & [ const u8 ] ) -> ~[ u8 ] {
33
31
do vec:: as_const_buf ( bytes) |b, len| {
34
32
unsafe {
35
33
let mut outsz : size_t = 0 ;
@@ -47,7 +45,7 @@ fn deflate_bytes(bytes: &[const u8]) -> ~[u8] {
47
45
}
48
46
}
49
47
50
- fn inflate_bytes ( bytes : & [ const u8 ] ) -> ~[ u8 ] {
48
+ pub fn inflate_bytes ( bytes : & [ const u8 ] ) -> ~[ u8 ] {
51
49
do vec:: as_const_buf ( bytes) |b, len| {
52
50
unsafe {
53
51
let mut outsz : size_t = 0 ;
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ use libc::c_void;
13
13
* data structure, and implement both `MovePtr` for it as well as `TyVisitor`;
14
14
* then build a MovePtrAdaptor wrapped around your struct.
15
15
*/
16
- trait MovePtr {
16
+ pub trait MovePtr {
17
17
fn move_ptr ( adjustment : fn ( * c_void ) -> * c_void ) ;
18
18
}
19
19
You can’t perform that action at this time.
0 commit comments