10
10
11
11
use rustc:: mir:: Location ;
12
12
use rustc:: ty:: RegionVid ;
13
- use rustc_data_structures:: fx:: FxHashSet ;
14
13
use rustc_data_structures:: indexed_vec:: { Idx , IndexVec } ;
15
14
16
15
use std:: fmt;
@@ -20,7 +19,6 @@ use std::ops::Deref;
20
19
#[ derive( Clone , Default ) ]
21
20
crate struct ConstraintSet {
22
21
constraints : IndexVec < ConstraintIndex , OutlivesConstraint > ,
23
- seen_constraints : FxHashSet < ( RegionVid , RegionVid ) > ,
24
22
}
25
23
26
24
impl ConstraintSet {
@@ -33,9 +31,7 @@ impl ConstraintSet {
33
31
// 'a: 'a is pretty uninteresting
34
32
return ;
35
33
}
36
- if self . seen_constraints . insert ( constraint. dedup_key ( ) ) {
37
- self . constraints . push ( constraint) ;
38
- }
34
+ self . constraints . push ( constraint) ;
39
35
}
40
36
41
37
/// Once all constraints have been added, `link()` is used to thread together the constraints
@@ -107,12 +103,6 @@ pub struct OutlivesConstraint {
107
103
pub span : Span ,
108
104
}
109
105
110
- impl OutlivesConstraint {
111
- pub fn dedup_key ( & self ) -> ( RegionVid , RegionVid ) {
112
- ( self . sup , self . sub )
113
- }
114
- }
115
-
116
106
impl fmt:: Debug for OutlivesConstraint {
117
107
fn fmt ( & self , formatter : & mut fmt:: Formatter ) -> fmt:: Result {
118
108
write ! (
0 commit comments