File tree Expand file tree Collapse file tree 2 files changed +3
-24
lines changed
src/librustc/middle/borrowck Expand file tree Collapse file tree 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;
4949
5050pub mod move_data;
5151
52+ #[ deriving( Clone ) ]
5253pub struct LoanDataFlowOperator ;
5354
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-
6255pub type LoanDataFlow < ' a > = DataFlowContext < ' a , LoanDataFlowOperator > ;
6356
6457impl < ' a > Visitor < ( ) > for BorrowckCtxt < ' a > {
Original file line number Diff line number Diff line change @@ -147,28 +147,14 @@ pub struct Assignment {
147147 pub span : Span ,
148148}
149149
150+ #[ deriving( Clone ) ]
150151pub struct MoveDataFlowOperator ;
151152
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-
160153pub type MoveDataFlow < ' a > = DataFlowContext < ' a , MoveDataFlowOperator > ;
161154
155+ #[ deriving( Clone ) ]
162156pub struct AssignDataFlowOperator ;
163157
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-
172158pub type AssignDataFlow < ' a > = DataFlowContext < ' a , AssignDataFlowOperator > ;
173159
174160impl MoveData {
You can’t perform that action at this time.
0 commit comments