Skip to content

Commit 35f0e2a

Browse files
committed
add some missing #[cfg(feature)] attributes
1 parent 26a665d commit 35f0e2a

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

src/unify/backing_vec.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ pub struct Persistent<K: UnifyKey> {
100100
values: DVec<VarValue<K>>
101101
}
102102

103+
#[cfg(feature = "persistent")]
103104
impl<K: UnifyKey> UnificationStore for Persistent<K> {
104105
type Key = K;
105106
type Value = K::Value;
@@ -136,6 +137,7 @@ impl<K: UnifyKey> UnificationStore for Persistent<K> {
136137
}
137138
}
138139

140+
#[cfg(feature = "persistent")]
139141
impl<K> ops::Index<usize> for Persistent<K>
140142
where K: UnifyKey
141143
{

src/unify/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,7 @@ pub struct UnificationTable<S: UnificationStore> {
171171
pub type InPlaceUnificationTable<K> = UnificationTable<InPlace<K>>;
172172

173173
/// A unification table that uses a "persistent" vector.
174+
#[cfg(feature = "persistent")]
174175
pub type PersistentUnificationTable<K> = UnificationTable<Persistent<K>>;
175176

176177
/// At any time, users may snapshot a unification table. The changes

0 commit comments

Comments
 (0)