remove some unused mut decls and vars
This commit is contained in:
parent
4dc62dfcf3
commit
e235f6ca53
@ -788,7 +788,7 @@ pub fn link_binary(sess: Session,
|
||||
};
|
||||
|
||||
debug!("output: %s", output.to_str());
|
||||
let mut cc_args = link_args(sess, obj_filename, out_filename, lm);
|
||||
let cc_args = link_args(sess, obj_filename, out_filename, lm);
|
||||
debug!("%s link args: %s", cc_prog, str::connect(cc_args, ~" "));
|
||||
// We run 'cc' here
|
||||
let prog = run::program_output(cc_prog, cc_args);
|
||||
|
@ -208,7 +208,6 @@ pub fn store_environment(bcx: block,
|
||||
|
||||
// allocate closure in the heap
|
||||
let Result {bcx: bcx, val: llbox} = allocate_cbox(bcx, sigil, cdata_ty);
|
||||
let mut temp_cleanups = ~[];
|
||||
|
||||
// cbox_ty has the form of a tuple: (a, b, c) we want a ptr to a
|
||||
// tuple. This could be a ptr in uniq or a box or on stack,
|
||||
@ -244,9 +243,6 @@ pub fn store_environment(bcx: block,
|
||||
}
|
||||
|
||||
}
|
||||
for vec::each(temp_cleanups) |cleanup| {
|
||||
revoke_clean(bcx, *cleanup);
|
||||
}
|
||||
|
||||
ClosureResult { llbox: llbox, cdata_ty: cdata_ty, bcx: bcx }
|
||||
}
|
||||
|
@ -42,7 +42,7 @@ pub fn find_reachable(crate_mod: &_mod, exp_map2: resolve::ExportMap2,
|
||||
tcx: ty::ctxt, method_map: typeck::method_map) -> map {
|
||||
let mut rmap = HashSet::new();
|
||||
{
|
||||
let mut cx = @mut ctx {
|
||||
let cx = @mut ctx {
|
||||
exp_map2: exp_map2,
|
||||
tcx: tcx,
|
||||
method_map: method_map,
|
||||
|
@ -1950,7 +1950,7 @@ pub fn type_contents(cx: ctxt, ty: t) -> TypeContents {
|
||||
|
||||
let _i = indenter();
|
||||
|
||||
let mut result = match get(ty).sty {
|
||||
let result = match get(ty).sty {
|
||||
// Scalar and unique types are sendable, constant, and owned
|
||||
ty_nil | ty_bot | ty_bool | ty_int(_) | ty_uint(_) | ty_float(_) |
|
||||
ty_bare_fn(_) | ty_ptr(_) => {
|
||||
|
Loading…
Reference in New Issue
Block a user