Skip to content

Commit ba5da17

Browse files
committed
remove use of unstable features altogether
1 parent e402f6a commit ba5da17

File tree

3 files changed

+6
-9
lines changed

3 files changed

+6
-9
lines changed

Cargo.toml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,3 @@ homepage = "https://github.com/nikomatsakis/ena"
66
repository = "https://github.com/nikomatsakis/ena"
77
version = "0.4.0"
88
authors = ["Niko Matsakis <[email protected]>"]
9-
10-
[features]
11-
default = ["unstable"]
12-
unstable = []

src/cc/mod.rs

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,11 @@
22
//! paper "Fast Decision Procedures Based on Congruence Closure" by Nelson
33
//! and Oppen, JACM 1980.
44
5-
use graph::{Graph, NodeIndex};
5+
use graph::{self, Graph, NodeIndex};
66
use std::collections::HashMap;
77
use std::fmt::Debug;
88
use std::hash::Hash;
9+
use std::iter;
910
use unify::{UnifyKey, UnifyValue, InfallibleUnifyValue, UnificationTable, UnionedKeys};
1011

1112
#[cfg(test)]
@@ -408,13 +409,15 @@ impl<'a, K: Key> Algorithm<'a, K> {
408409
}
409410
}
410411

411-
fn successors(&self, token: Token) -> impl Iterator<Item = Token> + 'a {
412+
fn successors(&self, token: Token) -> iter::Map<graph::AdjacentTargets<'a, K, ()>,
413+
fn(NodeIndex) -> Token> {
412414
self.graph
413415
.successor_nodes(token.node())
414416
.map(Token::from_node)
415417
}
416418

417-
fn predecessors(&self, token: Token) -> impl Iterator<Item = Token> + 'a {
419+
fn predecessors(&self, token: Token) -> iter::Map<graph::AdjacentSources<'a, K, ()>,
420+
fn(NodeIndex) -> Token> {
418421
self.graph
419422
.predecessor_nodes(token.node())
420423
.map(Token::from_node)

src/lib.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@
1010

1111
#![cfg_attr(all(feature = "unstable", test), feature(test))]
1212
#![allow(dead_code)]
13-
#![cfg_attr(feature = "unstable", feature(conservative_impl_trait))]
14-
#![cfg_attr(feature = "unstable", feature(static_in_const))]
1513

1614
#[macro_use]
1715
mod debug;

0 commit comments

Comments
 (0)