File tree Expand file tree Collapse file tree 3 files changed +10
-3
lines changed Expand file tree Collapse file tree 3 files changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -7,3 +7,6 @@ repository = "https://github.com/nikomatsakis/ena"
7
7
version = " 0.4.0"
8
8
authors = [
" Niko Matsakis <[email protected] >" ]
9
9
10
+ [features ]
11
+ default = [" unstable" ]
12
+ unstable = []
Original file line number Diff line number Diff line change 8
8
// option. This file may not be copied, modified, or distributed
9
9
// except according to those terms.
10
10
11
- #![ cfg_attr( test, feature( test) ) ]
11
+ #![ cfg_attr( all ( feature = "unstable" , test) , feature( test) ) ]
12
12
#![ allow( dead_code) ]
13
- #![ feature( conservative_impl_trait) ]
14
- #![ feature( static_in_const) ]
13
+ #![ cfg_attr ( feature = "unstable" , feature ( conservative_impl_trait) ) ]
14
+ #![ cfg_attr ( feature = "unstable" , feature ( static_in_const) ) ]
15
15
16
16
#[ macro_use]
17
17
mod debug;
18
18
19
19
pub mod constraint;
20
20
pub mod graph;
21
21
pub mod snapshot_vec;
22
+ #[ cfg( feature = "unstable" ) ]
22
23
pub mod cc;
23
24
pub mod unify;
24
25
pub mod bitvec;
Original file line number Diff line number Diff line change 8
8
// option. This file may not be copied, modified, or distributed
9
9
// except according to those terms.
10
10
11
+ #[ cfg( feature = "unstable" ) ]
11
12
extern crate test;
13
+ #[ cfg( feature = "unstable" ) ]
12
14
use self :: test:: Bencher ;
13
15
use std:: collections:: HashSet ;
14
16
use std:: cmp;
@@ -61,6 +63,7 @@ fn big_array() {
61
63
}
62
64
}
63
65
66
+ #[ cfg( feature = "unstable" ) ]
64
67
#[ bench]
65
68
fn big_array_bench ( b : & mut Bencher ) {
66
69
let mut ut: UnificationTable < UnitKey > = UnificationTable :: new ( ) ;
You can’t perform that action at this time.
0 commit comments