Skip to content

Commit 226f4df

Browse files
committed
rustc: One less bad copy
1 parent 00eef96 commit 226f4df

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/librustc/middle/trans/base.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2228,8 +2228,7 @@ pub fn register_fn_fuller(ccx: @CrateContext,
22282228
mangle_exported_name(ccx, /*bad*/copy path, node_type)
22292229
};
22302230
2231-
// XXX: Bad copy.
2232-
let llfn: ValueRef = decl_fn(ccx.llmod, copy ps, cc, llfty);
2231+
let llfn: ValueRef = decl_fn(ccx.llmod, ps, cc, llfty);
22332232
ccx.item_symbols.insert(node_id, ps);
22342233
22352234
// FIXME #4404 android JNI hacks

0 commit comments

Comments
 (0)