Skip to content

Commit e80bea5

Browse files
author
Cameron Zwarich
committed
---
yaml --- r: 152309 b: refs/heads/try2 c: f63fad5 h: refs/heads/master i: 152307: ae79319 v: v3
1 parent 0569a2d commit e80bea5

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ refs/heads/snap-stage3: 78a7676898d9f80ab540c6df5d4c9ce35bb50463
55
refs/heads/try: 519addf6277dbafccbb4159db4b710c37eaa2ec5
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
8-
refs/heads/try2: 0339b27e6db07e50bf71edc5eb78133a418a5949
8+
refs/heads/try2: f63fad5d60f451013a6787fec4db12b77cab018c
99
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d
1010
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1111
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503

branches/try2/src/librustc/middle/borrowck/move_data.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,7 @@ impl MoveData {
356356
let path_index = self.move_path(tcx, lp.clone());
357357

358358
match mode {
359-
euv::JustWrite => {
359+
euv::Init | euv::JustWrite => {
360360
self.assignee_ids.borrow_mut().insert(assignee_id);
361361
}
362362
euv::WriteAndRead => { }

branches/try2/src/librustc/middle/expr_use_visitor.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ pub enum ConsumeMode {
8686

8787
#[deriving(PartialEq,Show)]
8888
pub enum MutateMode {
89+
Init,
8990
JustWrite, // x = y
9091
WriteAndRead, // x += y
9192
}
@@ -712,7 +713,7 @@ impl<'d,'t,TYPER:mc::Typer> ExprUseVisitor<'d,'t,TYPER> {
712713
let def = def_map.borrow().get_copy(&pat.id);
713714
match mc.cat_def(pat.id, pat.span, pat_ty, def) {
714715
Ok(binding_cmt) => {
715-
delegate.mutate(pat.id, pat.span, binding_cmt, JustWrite);
716+
delegate.mutate(pat.id, pat.span, binding_cmt, Init);
716717
}
717718
Err(_) => { }
718719
}

0 commit comments

Comments
 (0)