@@ -7,25 +7,23 @@ macro_rules! eprintln {
7
7
}
8
8
9
9
mod autoderef;
10
- pub mod primitive;
11
- pub mod traits;
12
- pub mod method_resolution;
13
- mod op;
14
- mod lower;
15
- pub ( crate ) mod infer;
16
- pub ( crate ) mod utils;
17
- mod chalk_cast;
18
- mod chalk_ext;
19
10
mod builder;
20
- mod walk;
21
- mod tls;
11
+ mod chalk_db;
12
+ mod chalk_ext;
13
+ mod infer;
22
14
mod interner;
15
+ mod lower;
23
16
mod mapping;
24
- mod chalk_db;
25
-
26
- pub mod display;
17
+ mod op;
18
+ mod tls;
19
+ mod utils;
20
+ mod walk;
27
21
pub mod db;
28
22
pub mod diagnostics;
23
+ pub mod display;
24
+ pub mod method_resolution;
25
+ pub mod primitive;
26
+ pub mod traits;
29
27
30
28
#[ cfg( test) ]
31
29
mod tests;
@@ -100,6 +98,10 @@ pub type ConstValue = chalk_ir::ConstValue<Interner>;
100
98
pub type ConcreteConst = chalk_ir:: ConcreteConst < Interner > ;
101
99
102
100
pub type ChalkTraitId = chalk_ir:: TraitId < Interner > ;
101
+ pub type TraitRef = chalk_ir:: TraitRef < Interner > ;
102
+ pub type QuantifiedWhereClause = Binders < WhereClause > ;
103
+ pub type QuantifiedWhereClauses = chalk_ir:: QuantifiedWhereClauses < Interner > ;
104
+ pub type Canonical < T > = chalk_ir:: Canonical < T > ;
103
105
104
106
pub type FnSig = chalk_ir:: FnSig < Interner > ;
105
107
@@ -159,14 +161,6 @@ pub fn make_canonical<T: HasInterner<Interner = Interner>>(
159
161
Canonical { value, binders : chalk_ir:: CanonicalVarKinds :: from_iter ( & Interner , kinds) }
160
162
}
161
163
162
- pub type TraitRef = chalk_ir:: TraitRef < Interner > ;
163
-
164
- pub type QuantifiedWhereClause = Binders < WhereClause > ;
165
-
166
- pub type QuantifiedWhereClauses = chalk_ir:: QuantifiedWhereClauses < Interner > ;
167
-
168
- pub type Canonical < T > = chalk_ir:: Canonical < T > ;
169
-
170
164
/// A function signature as seen by type inference: Several parameter types and
171
165
/// one return type.
172
166
#[ derive( Clone , PartialEq , Eq , Debug ) ]
@@ -175,6 +169,8 @@ pub struct CallableSig {
175
169
is_varargs : bool ,
176
170
}
177
171
172
+ has_interner ! ( CallableSig ) ;
173
+
178
174
/// A polymorphic function signature.
179
175
pub type PolyFnSig = Binders < CallableSig > ;
180
176
@@ -238,6 +234,8 @@ pub struct ReturnTypeImplTraits {
238
234
pub ( crate ) impl_traits : Vec < ReturnTypeImplTrait > ,
239
235
}
240
236
237
+ has_interner ! ( ReturnTypeImplTraits ) ;
238
+
241
239
#[ derive( Clone , PartialEq , Eq , Debug , Hash ) ]
242
240
pub ( crate ) struct ReturnTypeImplTrait {
243
241
pub ( crate ) bounds : Binders < Vec < QuantifiedWhereClause > > ,
0 commit comments