@@ -141,6 +141,7 @@ mod structural_impls;
141
141
mod sty;
142
142
mod typeck_results;
143
143
144
+ mod alias_relation_direction;
144
145
mod bound_constness;
145
146
mod impl_polarity;
146
147
mod param_env;
@@ -149,6 +150,7 @@ mod term;
149
150
mod ty_; // FIXME: rename to `ty` once we don't import `crate::ty` here
150
151
mod visibility;
151
152
153
+ pub use alias_relation_direction:: AliasRelationDirection ;
152
154
pub use bound_constness:: BoundConstness ;
153
155
pub use impl_polarity:: ImplPolarity ;
154
156
pub use param_env:: { ParamEnv , ParamEnvAnd } ;
@@ -361,22 +363,6 @@ pub enum Clause<'tcx> {
361
363
ConstArgHasType ( Const < ' tcx > , Ty < ' tcx > ) ,
362
364
}
363
365
364
- #[ derive( Clone , Copy , PartialEq , Eq , Hash , TyEncodable , TyDecodable ) ]
365
- #[ derive( HashStable , Debug ) ]
366
- pub enum AliasRelationDirection {
367
- Equate ,
368
- Subtype ,
369
- }
370
-
371
- impl std:: fmt:: Display for AliasRelationDirection {
372
- fn fmt ( & self , f : & mut std:: fmt:: Formatter < ' _ > ) -> std:: fmt:: Result {
373
- match self {
374
- AliasRelationDirection :: Equate => write ! ( f, "==" ) ,
375
- AliasRelationDirection :: Subtype => write ! ( f, "<:" ) ,
376
- }
377
- }
378
- }
379
-
380
366
/// The crate outlives map is computed during typeck and contains the
381
367
/// outlives of every item in the local crate. You should not use it
382
368
/// directly, because to do so will make your pass dependent on the
0 commit comments