Skip to content

Commit f8b5feb

Browse files
committed
---
yaml --- r: 10489 b: refs/heads/snap-stage3 c: c6462ee h: refs/heads/master i: 10487: 38c5356 v: v3
1 parent 8967909 commit f8b5feb

File tree

6 files changed

+4
-43
lines changed

6 files changed

+4
-43
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
refs/heads/master: 2898dcc5d97da9427ac367542382b6239d9c0bbf
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4-
refs/heads/snap-stage3: 74d2f56f217b12114b87cf09da4cbdc29c93ed8a
4+
refs/heads/snap-stage3: c6462eec304ce9d786aab2d6a1314725490aeeaa
55
refs/heads/try: 2898dcc5d97da9427ac367542382b6239d9c0bbf
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105

branches/snap-stage3/src/rustc/middle/trans/native.rs

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -812,26 +812,6 @@ fn trans_intrinsic(ccx: @crate_ctxt, decl: ValueRef, item: @ast::native_item,
812812
Store(bcx, C_uint(ccx, shape::llsize_of_real(ccx, lltp_ty)),
813813
fcx.llretptr);
814814
}
815-
"move_val" {
816-
let tp_ty = substs.tys[0];
817-
let src = {bcx: bcx,
818-
val: get_param(decl, first_real_arg + 1u),
819-
kind: owned };
820-
bcx = move_val(bcx, DROP_EXISTING,
821-
get_param(decl, first_real_arg),
822-
src,
823-
tp_ty);
824-
}
825-
"move_val_init" {
826-
let tp_ty = substs.tys[0];
827-
let src = {bcx: bcx,
828-
val: get_param(decl, first_real_arg + 1u),
829-
kind: owned };
830-
bcx = move_val(bcx, INIT,
831-
get_param(decl, first_real_arg),
832-
src,
833-
tp_ty);
834-
}
835815
"min_align_of" {
836816
let tp_ty = substs.tys[0];
837817
let lltp_ty = type_of::type_of(ccx, tp_ty);

branches/snap-stage3/src/rustc/middle/trans/reflect.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,7 @@ impl methods for reflector {
156156
}
157157

158158
// FIXME: fetch constants out of intrinsic:: for the numbers.
159+
// (#2594)
159160
ty::ty_fn(fty) {
160161
let pureval = alt fty.purity {
161162
ast::pure_fn { 0u }
@@ -217,7 +218,7 @@ impl methods for reflector {
217218
// FIXME: visiting all the variants in turn is probably
218219
// not ideal. It'll work but will get costly on big enums.
219220
// Maybe let the visitor tell us if it wants to visit only
220-
// a particular variant?
221+
// a particular variant? (#2595)
221222
ty::ty_enum(did, substs) {
222223
let bcx = self.bcx;
223224
let tcx = bcx.ccx().tcx;

branches/snap-stage3/src/rustc/middle/trans/type_use.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,9 +79,7 @@ fn type_uses_for(ccx: @crate_ctxt, fn_id: def_id, n_tps: uint)
7979
let flags = alt check *i.ident {
8080
"visit_ty" { 3u }
8181
"size_of" | "pref_align_of" | "min_align_of" |
82-
"init" | "reinterpret_cast" | "move_val" | "move_val_init" {
83-
use_repr
84-
}
82+
"init" | "reinterpret_cast" { use_repr }
8583
"get_tydesc" | "needs_drop" { use_tydesc }
8684
"forget" | "addr_of" { 0u }
8785
};

branches/snap-stage3/src/rustc/middle/typeck/check.rs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -456,7 +456,6 @@ impl methods for @fn_ctxt {
456456
none { result::err("no block is in scope here") }
457457
}
458458
}
459-
#[inline(always)]
460459
fn write_ty(node_id: ast::node_id, ty: ty::t) {
461460
#debug["write_ty(%d, %s) in fcx %s",
462461
node_id, ty_to_str(self.tcx(), ty), self.tag()];
@@ -2311,11 +2310,6 @@ fn check_intrinsic_type(ccx: @crate_ctxt, it: @ast::native_item) {
23112310
param(ccx, 1u)) }
23122311
"addr_of" { (1u, [arg(ast::by_ref, param(ccx, 0u))],
23132312
ty::mk_imm_ptr(tcx, param(ccx, 0u))) }
2314-
"move_val" | "move_val_init" {
2315-
(1u, [arg(ast::by_mutbl_ref, param(ccx, 0u)),
2316-
arg(ast::by_move, param(ccx, 0u))],
2317-
ty::mk_nil(tcx))
2318-
}
23192313
"needs_drop" { (1u, [], ty::mk_bool(tcx)) }
23202314

23212315
"visit_ty" {

branches/snap-stage3/src/test/run-pass/intrinsic-move-val.rs

Lines changed: 0 additions & 12 deletions
This file was deleted.

0 commit comments

Comments
 (0)