Skip to content

Commit 3a1022a

Browse files
committed
---
yaml --- r: 28452 b: refs/heads/try c: 3aa5b0c h: refs/heads/master v: v3
1 parent 1035df2 commit 3a1022a

File tree

12 files changed

+24
-24
lines changed

12 files changed

+24
-24
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
refs/heads/master: cd6f24f9d14ac90d167386a56e7a6ac1f0318195
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: cd6f24f9d14ac90d167386a56e7a6ac1f0318195
5-
refs/heads/try: 4a865401f580863c67b9dd0e44a0192f21817c7c
5+
refs/heads/try: 3aa5b0cb4403e0a61a11455ac615108b67e45ccd
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: d0c6ce338884ee21843f4b40bf6bf18d222ce5df

branches/try/src/rustc/driver/driver.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ fn time<T>(do_it: bool, what: ~str, thunk: fn() -> T) -> T {
125125
let end = std::time::precise_time_s();
126126
io::stdout().write_str(fmt!("time: %3.3f s\t%s\n",
127127
end - start, what));
128-
return rv;
128+
move rv
129129
}
130130

131131
enum compile_upto {

branches/try/src/rustc/metadata/encoder.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1103,7 +1103,7 @@ fn encode_metadata(parms: encode_parms, crate: @crate) -> ~[u8] {
11031103
diag: parms.diag,
11041104
tcx: parms.tcx,
11051105
buf: buf,
1106-
stats: stats,
1106+
stats: move stats,
11071107
reachable: parms.reachable,
11081108
reexports: parms.reexports,
11091109
reexports2: parms.reexports2,

branches/try/src/rustc/middle/borrowck.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -400,7 +400,7 @@ fn save_and_restore<T:Copy,U>(&save_and_restore_t: T, f: fn() -> U) -> U {
400400
let old_save_and_restore_t = save_and_restore_t;
401401
let u <- f();
402402
save_and_restore_t = old_save_and_restore_t;
403-
return u;
403+
move u
404404
}
405405

406406
/// Creates and returns a new root_map

branches/try/src/rustc/middle/liveness.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1466,7 +1466,7 @@ impl Liveness {
14661466
let r <- f();
14671467
self.break_ln = bl;
14681468
self.cont_ln = cl;
1469-
return r;
1469+
move r
14701470
}
14711471
}
14721472

branches/try/src/rustc/middle/resolve.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -728,7 +728,7 @@ fn Resolver(session: session, lang_items: LanguageItems,
728728
intr: session.intr()
729729
};
730730

731-
return self;
731+
move self
732732
}
733733

734734
/// The main resolver class.

branches/try/src/rustc/middle/trans/foreign.rs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -256,27 +256,27 @@ fn classify_ty(ty: TypeRef) -> ~[x86_64_reg_class] {
256256
if cls[i] == sseup_class {
257257
cls[i] = sse_int_class;
258258
} else if is_sse(cls[i]) {
259-
i += 1u;
259+
i += 1;
260260
while cls[i] == sseup_class { i += 1u; }
261261
} else if cls[i] == x87_class {
262-
i += 1u;
262+
i += 1;
263263
while cls[i] == x87up_class { i += 1u; }
264264
} else {
265-
i += 1u;
265+
i += 1;
266266
}
267267
}
268268
}
269269
}
270270

271-
let words = (ty_size(ty) + 7u) / 8u;
271+
let words = (ty_size(ty) + 7) / 8;
272272
let cls = vec::to_mut(vec::from_elem(words, no_class));
273-
if words > 4u {
273+
if words > 4 {
274274
all_mem(cls);
275-
return vec::from_mut(cls);
275+
return vec::from_mut(move cls);
276276
}
277-
classify(ty, cls, 0u, 0u);
277+
classify(ty, cls, 0, 0);
278278
fixup(ty, cls);
279-
return vec::from_mut(cls);
279+
return vec::from_mut(move cls);
280280
}
281281

282282
fn llreg_ty(cls: ~[x86_64_reg_class]) -> TypeRef {

branches/try/src/rustc/middle/typeck/check.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -740,7 +740,7 @@ impl @fn_ctxt {
740740
self.region_lb = lb;
741741
let v <- f();
742742
self.region_lb = old_region_lb;
743-
return v;
743+
move v
744744
}
745745

746746
fn region_var_if_parameterized(rp: Option<ty::region_variance>,

branches/try/src/rustc/middle/typeck/check/regionck.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -92,18 +92,18 @@ impl @rcx {
9292
}
9393

9494
fn regionck_expr(fcx: @fn_ctxt, e: @ast::expr) {
95-
let rcx = rcx_({fcx:fcx, mut errors_reported: 0u});
95+
let rcx = rcx_({fcx:fcx, mut errors_reported: 0});
9696
let v = regionck_visitor();
97-
v.visit_expr(e, @rcx, v);
97+
v.visit_expr(e, @(move rcx), v);
9898
fcx.infcx().resolve_regions();
9999
}
100100

101101
fn regionck_fn(fcx: @fn_ctxt,
102102
_decl: ast::fn_decl,
103103
blk: ast::blk) {
104-
let rcx = rcx_({fcx:fcx, mut errors_reported: 0u});
104+
let rcx = rcx_({fcx:fcx, mut errors_reported: 0});
105105
let v = regionck_visitor();
106-
v.visit_block(blk, @rcx, v);
106+
v.visit_block(blk, @(move rcx), v);
107107
fcx.infcx().resolve_regions();
108108
}
109109

branches/try/src/rustc/middle/typeck/infer.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -565,7 +565,7 @@ impl infer_ctxt {
565565
self.ty_var_bindings.bindings = ~[];
566566
self.int_var_bindings.bindings = ~[];
567567
self.region_vars.commit();
568-
r
568+
move r
569569
}
570570
}
571571

@@ -579,7 +579,7 @@ impl infer_ctxt {
579579
Ok(_) => (),
580580
Err(_) => self.rollback_to(&snapshot)
581581
}
582-
r
582+
move r
583583
}
584584
}
585585

@@ -590,7 +590,7 @@ impl infer_ctxt {
590590
let snapshot = self.start_snapshot();
591591
let r = self.try(f);
592592
self.rollback_to(&snapshot);
593-
r
593+
move r
594594
}
595595
}
596596
}

branches/try/src/rustc/middle/typeck/infer/region_var_bindings.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -866,7 +866,7 @@ impl RegionVarBindings {
866866
}
867867
}
868868

869-
return graph;
869+
return (move graph);
870870

871871
fn insert_edge(graph: &mut Graph,
872872
node_id: RegionVid,

branches/try/src/rustc/util/common.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ fn indent<R>(op: fn() -> R) -> R {
1111
debug!(">>");
1212
let r <- op();
1313
debug!("<< (Result = %?)", r);
14-
return r;
14+
move r
1515
}
1616

1717
struct _indenter {

0 commit comments

Comments
 (0)