@@ -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-
2018 use 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 ) ]
2623 pub struct AscribeUserType < ' tcx > {
2724 pub mir_ty : Ty < ' tcx > ,
2825 pub 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 ) ]
3829 pub struct Eq < ' tcx > {
3930 pub a : Ty < ' tcx > ,
@@ -51,26 +42,11 @@ pub mod type_op {
5142 pub 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 ) ]
6146 pub struct Normalize < T > {
6247 pub 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 ) ]
7551 pub struct ImpliedOutlivesBounds < ' tcx > {
7652 pub ty : Ty < ' tcx > ,
0 commit comments