File tree 2 files changed +6
-3
lines changed
2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,8 @@ use std::marker::PhantomData;
7
7
use super :: { VarValue , UnifyKey , UnifyValue } ;
8
8
9
9
#[ allow( dead_code) ] // rustc BUG
10
- type Key < S > = <S as UnificationStore >:: Key ;
10
+ #[ allow( type_alias_bounds) ]
11
+ type Key < S : UnificationStore > = <S as UnificationStore >:: Key ;
11
12
12
13
/// Largely internal trait implemented by the unification table
13
14
/// backing store types. The most common such type is `InPlace`,
Original file line number Diff line number Diff line change @@ -181,11 +181,13 @@ pub struct UnificationTable<S: UnificationStore> {
181
181
}
182
182
183
183
/// A unification table that uses an "in-place" vector.
184
- pub type InPlaceUnificationTable < K > = UnificationTable < InPlace < K > > ;
184
+ #[ allow( type_alias_bounds) ]
185
+ pub type InPlaceUnificationTable < K : UnifyKey > = UnificationTable < InPlace < K > > ;
185
186
186
187
/// A unification table that uses a "persistent" vector.
187
188
#[ cfg( feature = "persistent" ) ]
188
- pub type PersistentUnificationTable < K > = UnificationTable < Persistent < K > > ;
189
+ #[ allow( type_alias_bounds) ]
190
+ pub type PersistentUnificationTable < K : UnifyKey > = UnificationTable < Persistent < K > > ;
189
191
190
192
/// At any time, users may snapshot a unification table. The changes
191
193
/// made during the snapshot may either be *committed* or *rolled back*.
You can’t perform that action at this time.
0 commit comments