File tree 12 files changed +26
-16
lines changed
12 files changed +26
-16
lines changed Original file line number Diff line number Diff line change @@ -74,6 +74,7 @@ src/.DS_Store
74
74
/doc /html
75
75
/doc /latex
76
76
/doc /std
77
+ /doc /arena
77
78
/doc /extra
78
79
/doc /flate
79
80
/doc /green
Original file line number Diff line number Diff line change @@ -37,6 +37,7 @@ li {list-style-type: none; }
37
37
* [ The Rust parser, ` libsyntax ` ] ( syntax/index.html )
38
38
* [ The Rust compiler, ` librustc ` ] ( rustc/index.html )
39
39
40
+ * [ The ` arena ` allocation library] ( arena/index.html )
40
41
* [ The ` flate ` compression library] ( flate/index.html )
41
42
42
43
# Tooling
Original file line number Diff line number Diff line change 49
49
# automatically generated for all stage/host/target combinations.
50
50
# ###############################################################################
51
51
52
- TARGET_CRATES := std extra green rustuv native flate
52
+ TARGET_CRATES := std extra green rustuv native flate arena
53
53
HOST_CRATES := syntax rustc rustdoc rustpkg
54
54
CRATES := $(TARGET_CRATES ) $(HOST_CRATES )
55
55
TOOLS := compiletest rustpkg rustdoc rustc
@@ -60,10 +60,11 @@ DEPS_green := std
60
60
DEPS_rustuv := std native:uv native:uv_support
61
61
DEPS_native := std
62
62
DEPS_syntax := std extra
63
- DEPS_rustc := syntax native:rustllvm flate
63
+ DEPS_rustc := syntax native:rustllvm flate arena
64
64
DEPS_rustdoc := rustc native:sundown
65
65
DEPS_rustpkg := rustc
66
66
DEPS_flate := std native:miniz
67
+ DEPS_arena := std extra
67
68
68
69
TOOL_DEPS_compiletest := extra green rustuv
69
70
TOOL_DEPS_rustpkg := rustpkg green rustuv
Original file line number Diff line number Diff line change 15
15
//! of individual objects while the arena itself is still alive. The benefit
16
16
//! of an arena is very fast allocation; just a pointer bump.
17
17
18
+ #[ crate_id = "arena#0.10-pre" ] ;
19
+ #[ crate_type = "rlib" ] ;
20
+ #[ crate_type = "dylib" ] ;
21
+ #[ license = "MIT/ASL2" ] ;
18
22
#[ allow( missing_doc) ] ;
23
+ #[ feature( managed_boxes) ] ;
19
24
20
- use list:: { List , Cons , Nil } ;
21
- use list;
25
+ extern mod extra;
26
+
27
+ use extra:: list:: { List , Cons , Nil } ;
28
+ use extra:: list;
22
29
23
30
use std:: at_vec;
24
31
use std:: cast:: { transmute, transmute_mut, transmute_mut_region} ;
@@ -493,7 +500,7 @@ impl<T> Drop for TypedArena<T> {
493
500
#[ cfg( test) ]
494
501
mod test {
495
502
use super :: { Arena , TypedArena } ;
496
- use test:: BenchHarness ;
503
+ use extra :: test:: BenchHarness ;
497
504
498
505
struct Point {
499
506
x : int ,
Original file line number Diff line number Diff line change @@ -70,7 +70,6 @@ pub mod tempfile;
70
70
pub mod glob;
71
71
pub mod term;
72
72
pub mod time;
73
- pub mod arena;
74
73
pub mod base64;
75
74
pub mod workcache;
76
75
pub mod enum_set;
Original file line number Diff line number Diff line change @@ -31,6 +31,7 @@ This API is completely unstable and subject to change.
31
31
32
32
extern mod extra;
33
33
extern mod flate;
34
+ extern mod arena;
34
35
extern mod syntax;
35
36
36
37
use back:: link;
Original file line number Diff line number Diff line change @@ -68,7 +68,7 @@ use util::common::indenter;
68
68
use util:: ppaux:: { Repr , ty_to_str} ;
69
69
use util:: sha2:: Sha256 ;
70
70
71
- use extra :: arena:: TypedArena ;
71
+ use arena:: TypedArena ;
72
72
use extra:: time;
73
73
use std:: c_str:: ToCStr ;
74
74
use std:: cell:: { Cell , RefCell } ;
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ use middle::typeck;
31
31
use util:: ppaux:: Repr ;
32
32
33
33
34
- use extra :: arena:: TypedArena ;
34
+ use arena:: TypedArena ;
35
35
use std:: c_str:: ToCStr ;
36
36
use std:: cast:: transmute;
37
37
use std:: cast;
Original file line number Diff line number Diff line change @@ -193,8 +193,8 @@ represents the "variance transform" as defined in the paper:
193
193
*/
194
194
195
195
use std:: hashmap:: HashMap ;
196
- use extra :: arena;
197
- use extra :: arena:: Arena ;
196
+ use arena;
197
+ use arena:: Arena ;
198
198
use middle:: ty;
199
199
use std:: vec;
200
200
use syntax:: ast;
Original file line number Diff line number Diff line change 9
9
// except according to those terms.
10
10
11
11
extern mod extra;
12
+ extern mod arena;
12
13
13
14
use std:: iter:: range_step;
14
15
use extra:: future:: Future ;
15
- use extra :: arena:: TypedArena ;
16
+ use arena:: TypedArena ;
16
17
17
18
enum Tree < ' a > {
18
19
Nil ,
Original file line number Diff line number Diff line change 10
10
// option. This file may not be copied, modified, or distributed
11
11
// except according to those terms.
12
12
13
- extern mod extra ;
14
- use extra :: arena:: Arena ;
13
+ extern mod arena ;
14
+ use arena:: Arena ;
15
15
16
16
pub fn main ( ) {
17
17
let mut arena = Arena :: new ( ) ;
Original file line number Diff line number Diff line change 16
16
// - Multiple lifetime parameters
17
17
// - Arenas
18
18
19
- extern mod extra ;
19
+ extern mod arena ;
20
20
21
- use extra:: arena;
22
- use extra:: arena:: Arena ;
21
+ use arena:: Arena ;
23
22
use std:: hashmap:: HashMap ;
24
23
use std:: cast;
25
24
use std:: libc;
You can’t perform that action at this time.
0 commit comments