Skip to content

Commit 1dac7f9

Browse files
committed
Merge branch 'master' of github.com:nikomatsakis/ena
2 parents f935ab2 + 6e24ca6 commit 1dac7f9

File tree

3 files changed

+10
-3
lines changed

3 files changed

+10
-3
lines changed

Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,6 @@ repository = "https://github.com/nikomatsakis/ena"
77
version = "0.4.0"
88
authors = ["Niko Matsakis <[email protected]>"]
99

10+
[features]
11+
default = ["unstable"]
12+
unstable = []

src/lib.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,18 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
#![cfg_attr(test, feature(test))]
11+
#![cfg_attr(all(feature = "unstable", test), feature(test))]
1212
#![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))]
1515

1616
#[macro_use]
1717
mod debug;
1818

1919
pub mod constraint;
2020
pub mod graph;
2121
pub mod snapshot_vec;
22+
#[cfg(feature = "unstable")]
2223
pub mod cc;
2324
pub mod unify;
2425
pub mod bitvec;

src/unify/tests.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11+
#[cfg(feature = "unstable")]
1112
extern crate test;
13+
#[cfg(feature = "unstable")]
1214
use self::test::Bencher;
1315
use std::collections::HashSet;
1416
use std::cmp;
@@ -61,6 +63,7 @@ fn big_array() {
6163
}
6264
}
6365

66+
#[cfg(feature = "unstable")]
6467
#[bench]
6568
fn big_array_bench(b: &mut Bencher) {
6669
let mut ut: UnificationTable<UnitKey> = UnificationTable::new();

0 commit comments

Comments
 (0)