Skip to content

Commit 67b0f3d

Browse files
committed
auto merge of #5339 : catamorphism/rust/less-copy, r=catamorphism
2 parents 4d8ddff + f9269a1 commit 67b0f3d

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

src/librust/rust.rc

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
// except according to those terms.
1010

1111
// rust - central access to other rust tools
12-
// XXX: Make commands run and test emit proper file endings on winds
13-
// XXX: Make run only accept source that emits an executable
12+
// FIXME #2238 Make commands run and test emit proper file endings on winds
13+
// FIXME #2238 Make run only accept source that emits an executable
1414

1515
#[deny(deprecated_self)];
1616

src/librustc/middle/trans/base.rs

+3-4
Original file line numberDiff line numberDiff line change
@@ -867,7 +867,7 @@ pub fn in_lpad_scope_cx(bcx: block, f: &fn(+si: &mut scope_info)) {
867867
let mut bcx = bcx;
868868
loop {
869869
{
870-
// XXX: Borrow check bug workaround.
870+
// FIXME #4280: Borrow check bug workaround.
871871
let kind: &mut block_kind = &mut *bcx.kind;
872872
match *kind {
873873
block_scope(ref mut inf) => {
@@ -1272,7 +1272,7 @@ pub fn cleanup_and_leave(bcx: block,
12721272
}
12731273

12741274
{
1275-
// XXX: Borrow check bug workaround.
1275+
// FIXME #4280: Borrow check bug workaround.
12761276
let kind: &mut block_kind = &mut *cur.kind;
12771277
match *kind {
12781278
block_scope(ref mut inf) if !inf.cleanups.is_empty() => {
@@ -1850,8 +1850,7 @@ pub fn trans_enum_variant(ccx: @CrateContext,
18501850
};
18511851
let fcx = new_fn_ctxt_w_id(ccx, ~[], llfndecl, variant.node.id, None,
18521852
param_substs, None);
1853-
// XXX: Bad copy.
1854-
let raw_llargs = create_llargs_for_fn_args(fcx, no_self, copy fn_args);
1853+
let raw_llargs = create_llargs_for_fn_args(fcx, no_self, fn_args);
18551854
let ty_param_substs = match param_substs {
18561855
Some(ref substs) => /*bad*/copy substs.tys,
18571856
None => ~[]

0 commit comments

Comments
 (0)