1010
1111use rustc:: mir:: Location ;
1212use rustc:: ty:: RegionVid ;
13- use rustc_data_structures:: fx:: FxHashSet ;
1413use rustc_data_structures:: indexed_vec:: { Idx , IndexVec } ;
1514
1615use std:: fmt;
@@ -20,7 +19,6 @@ use std::ops::Deref;
2019#[ derive( Clone , Default ) ]
2120crate struct ConstraintSet {
2221 constraints : IndexVec < ConstraintIndex , OutlivesConstraint > ,
23- seen_constraints : FxHashSet < ( RegionVid , RegionVid ) > ,
2422}
2523
2624impl ConstraintSet {
@@ -33,9 +31,7 @@ impl ConstraintSet {
3331 // 'a: 'a is pretty uninteresting
3432 return ;
3533 }
36- if self . seen_constraints . insert ( constraint. dedup_key ( ) ) {
37- self . constraints . push ( constraint) ;
38- }
34+ self . constraints . push ( constraint) ;
3935 }
4036
4137 /// Once all constraints have been added, `link()` is used to thread together the constraints
@@ -107,12 +103,6 @@ pub struct OutlivesConstraint {
107103 pub span : Span ,
108104}
109105
110- impl OutlivesConstraint {
111- pub fn dedup_key ( & self ) -> ( RegionVid , RegionVid ) {
112- ( self . sup , self . sub )
113- }
114- }
115-
116106impl fmt:: Debug for OutlivesConstraint {
117107 fn fmt ( & self , formatter : & mut fmt:: Formatter ) -> fmt:: Result {
118108 write ! (
0 commit comments