@@ -15,25 +15,16 @@ use crate::infer::canonical::{Canonical, QueryResponse};
1515use crate :: ty:: { self , GenericArg , Ty , TyCtxt } ;
1616
1717pub mod type_op {
18- use std:: fmt;
19-
2018use rustc_macros:: { HashStable , TypeFoldable , TypeVisitable } ;
2119
22- use crate :: ty:: fold:: TypeFoldable ;
23- use crate :: ty:: { Predicate , Ty , TyCtxt , UserType } ;
20+ use crate :: ty:: { Predicate , Ty , UserType } ;
2421
2522#[ derive( Copy , Clone , Debug , Hash , PartialEq , Eq , HashStable , TypeFoldable , TypeVisitable ) ]
2623pub struct AscribeUserType < ' tcx > {
2724pub mir_ty : Ty < ' tcx > ,
2825pub user_ty : UserType < ' tcx > ,
2926}
3027
31- impl < ' tcx > AscribeUserType < ' tcx > {
32- pub fn new ( mir_ty : Ty < ' tcx > , user_ty : UserType < ' tcx > ) -> Self {
33- Self { mir_ty, user_ty }
34- }
35- }
36-
3728#[ derive( Copy , Clone , Debug , Hash , PartialEq , Eq , HashStable , TypeFoldable , TypeVisitable ) ]
3829pub struct Eq < ' tcx > {
3930pub a : Ty < ' tcx > ,
@@ -51,26 +42,11 @@ pub mod type_op {
5142pub predicate : Predicate < ' tcx > ,
5243}
5344
54- impl < ' tcx > ProvePredicate < ' tcx > {
55- pub fn new ( predicate : Predicate < ' tcx > ) -> Self {
56- ProvePredicate { predicate }
57- }
58- }
59-
6045#[ derive( Copy , Clone , Debug , Hash , PartialEq , Eq , HashStable , TypeFoldable , TypeVisitable ) ]
6146pub struct Normalize < T > {
6247pub value : T ,
6348}
6449
65- impl < ' tcx , T > Normalize < T >
66- where
67- T : fmt:: Debug + TypeFoldable < TyCtxt < ' tcx > > ,
68- {
69- pub fn new ( value : T ) -> Self {
70- Self { value }
71- }
72- }
73-
7450#[ derive( Copy , Clone , Debug , Hash , PartialEq , Eq , HashStable , TypeFoldable , TypeVisitable ) ]
7551pub struct ImpliedOutlivesBounds < ' tcx > {
7652pub ty : Ty < ' tcx > ,
0 commit comments