File tree 2 files changed +3
-24
lines changed
src/librustc/middle/borrowck
2 files changed +3
-24
lines changed Original file line number Diff line number Diff line change @@ -49,16 +49,9 @@ pub mod gather_loans;
49
49
50
50
pub mod move_data;
51
51
52
+ #[ deriving( Clone ) ]
52
53
pub struct LoanDataFlowOperator ;
53
54
54
- /// FIXME(pcwalton): Should just be #[deriving(Clone)], but that doesn't work
55
- /// yet on unit structs.
56
- impl Clone for LoanDataFlowOperator {
57
- fn clone ( & self ) -> LoanDataFlowOperator {
58
- LoanDataFlowOperator
59
- }
60
- }
61
-
62
55
pub type LoanDataFlow < ' a > = DataFlowContext < ' a , LoanDataFlowOperator > ;
63
56
64
57
impl < ' a > Visitor < ( ) > for BorrowckCtxt < ' a > {
Original file line number Diff line number Diff line change @@ -147,28 +147,14 @@ pub struct Assignment {
147
147
pub span : Span ,
148
148
}
149
149
150
+ #[ deriving( Clone ) ]
150
151
pub struct MoveDataFlowOperator ;
151
152
152
- /// FIXME(pcwalton): Should just be #[deriving(Clone)], but that doesn't work
153
- /// yet on unit structs.
154
- impl Clone for MoveDataFlowOperator {
155
- fn clone ( & self ) -> MoveDataFlowOperator {
156
- MoveDataFlowOperator
157
- }
158
- }
159
-
160
153
pub type MoveDataFlow < ' a > = DataFlowContext < ' a , MoveDataFlowOperator > ;
161
154
155
+ #[ deriving( Clone ) ]
162
156
pub struct AssignDataFlowOperator ;
163
157
164
- /// FIXME(pcwalton): Should just be #[deriving(Clone)], but that doesn't work
165
- /// yet on unit structs.
166
- impl Clone for AssignDataFlowOperator {
167
- fn clone ( & self ) -> AssignDataFlowOperator {
168
- AssignDataFlowOperator
169
- }
170
- }
171
-
172
158
pub type AssignDataFlow < ' a > = DataFlowContext < ' a , AssignDataFlowOperator > ;
173
159
174
160
impl MoveData {
You can’t perform that action at this time.
0 commit comments