File tree Expand file tree Collapse file tree 3 files changed +14
-9
lines changed
branches/snap-stage3/src/librustc/middle/borrowck/gather_loans Expand file tree Collapse file tree 3 files changed +14
-9
lines changed Original file line number Diff line number Diff line change 1
1
---
2
2
refs/heads/master: bee4e6adac17f87b1cdc26ab69f8c0f5d82575a3
3
3
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4
- refs/heads/snap-stage3: 5ccb7644be0f0ab04a76bf88c93cecb63b1ba20d
4
+ refs/heads/snap-stage3: 40e3fb4c0b46569b0ab4f5642ed1726915d59e98
5
5
refs/heads/try: 009d898a9422ac04c1aa60c0e9aff3abc5fa4672
6
6
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
7
7
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
Original file line number Diff line number Diff line change @@ -45,10 +45,15 @@ pub fn gather_move_from_expr(bccx: &BorrowckCtxt,
45
45
move_data : & MoveData ,
46
46
move_error_collector : & MoveErrorCollector ,
47
47
move_expr_id : ast:: NodeId ,
48
- cmt : mc:: cmt ) {
48
+ cmt : mc:: cmt ,
49
+ move_reason : euv:: MoveReason ) {
50
+ let kind = match move_reason {
51
+ euv:: DirectRefMove | euv:: PatBindingMove => MoveExpr ,
52
+ euv:: CaptureMove => Captured
53
+ } ;
49
54
let move_info = GatherMoveInfo {
50
55
id : move_expr_id,
51
- kind : MoveExpr ,
56
+ kind : kind ,
52
57
cmt : cmt,
53
58
span_path_opt : None ,
54
59
} ;
Original file line number Diff line number Diff line change @@ -75,13 +75,13 @@ impl<'a> euv::Delegate for GatherLoanCtxt<'a> {
75
75
consume_id, cmt. repr( self . tcx( ) ) , mode) ;
76
76
77
77
match mode {
78
- euv:: Copy => { return ; }
79
- euv:: Move ( _) => { }
78
+ euv:: Move ( move_reason) => {
79
+ gather_moves:: gather_move_from_expr (
80
+ self . bccx , & self . move_data , & self . move_error_collector ,
81
+ consume_id, cmt, move_reason) ;
82
+ }
83
+ euv:: Copy => { }
80
84
}
81
-
82
- gather_moves:: gather_move_from_expr (
83
- self . bccx , & self . move_data , & self . move_error_collector ,
84
- consume_id, cmt) ;
85
85
}
86
86
87
87
fn consume_pat ( & mut self ,
You can’t perform that action at this time.
0 commit comments