Skip to content

Commit 67e7922

Browse files
committed
---
yaml --- r: 50172 b: refs/heads/auto c: 12df654 h: refs/heads/master v: v3
1 parent fd30141 commit 67e7922

File tree

15 files changed

+17
-58
lines changed

15 files changed

+17
-58
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,5 @@ refs/heads/try3: 9387340aab40a73e8424c48fd42f0c521a4875c0
1414
refs/tags/release-0.3.1: 495bae036dfe5ec6ceafd3312b4dca48741e845b
1515
refs/tags/release-0.4: e828ea2080499553b97dfe33b3f4d472b4562ad7
1616
refs/tags/release-0.5: 7e3bcfbf21278251ee936ad53e92e9b719702d73
17-
refs/heads/auto: 441313fc0ca635be18d1175e7dc265ab9ffa9d7d
17+
refs/heads/auto: 12df65470fb8c5d57fb4f94d37557daa6282173f
1818
refs/heads/servo: af82457af293e2a842ba6b7759b70288da276167

branches/auto/src/libcore/core.rc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@ Implicitly, all crates behave as if they included the following prologue:
5151
#[warn(vecs_implicitly_copyable)];
5252
#[deny(non_camel_case_types)];
5353
#[allow(deprecated_mutable_fields)];
54-
#[deny(deprecated_self)];
5554
#[allow(deprecated_drop)];
5655

5756
// On Linux, link to the runtime with -lrt.

branches/auto/src/libcore/repr.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ use managed;
2424
use ptr;
2525
use reflect;
2626
use reflect::{MovePtr, MovePtrAdaptor, align};
27-
use str;
2827
use sys;
2928
use to_str::ToStr;
3029
use vec::UnboxedVecRepr;

branches/auto/src/libcore/vec.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2547,7 +2547,6 @@ impl<A:Clone> Clone for ~[A] {
25472547
#[cfg(test)]
25482548
mod tests {
25492549
use option::{None, Option, Some};
2550-
use option;
25512550
use sys;
25522551
use vec::*;
25532552
use cmp::*;

branches/auto/src/libfuzzer/fuzzer.rc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525
#[allow(non_camel_case_types)];
2626
#[allow(deprecated_mode)];
2727
#[allow(deprecated_pattern)];
28-
#[deny(deprecated_self)];
2928

3029
extern mod core(vers = "0.6");
3130
extern mod std(vers = "0.6");

branches/auto/src/librust/rust.rc

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@
1212
// FIXME #2238 Make commands run and test emit proper file endings on winds
1313
// FIXME #2238 Make run only accept source that emits an executable
1414

15-
#[deny(deprecated_self)];
16-
1715
#[link(name = "rust",
1816
vers = "0.6",
1917
uuid = "4a24da33-5cc8-4037-9352-2cbe9bd9d27c",

branches/auto/src/librustc/driver/driver.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ use util::common::time;
2525
use util::ppaux;
2626

2727
use core::int;
28-
use core::io::WriterUtil;
2928
use core::io;
3029
use core::os;
3130
use core::str;

branches/auto/src/librustc/middle/kind.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,6 @@ use syntax::{visit, ast_util};
5656
// primitives in the stdlib are explicitly annotated to only take sendable
5757
// types.
5858

59-
use core::hashmap::linear::LinearSet;
60-
6159
pub static try_adding: &'static str = "Try adding a move";
6260

6361
pub type rval_map = HashMap<node_id, ()>;

branches/auto/src/librustc/middle/trans/tvec.rs

Lines changed: 16 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ use middle::ty;
2727
use util::common::indenter;
2828
use util::ppaux::ty_to_str;
2929

30-
use core::option::None;
3130
use core::uint;
3231
use core::vec;
3332
use syntax::ast;
@@ -414,54 +413,30 @@ pub fn write_content(bcx: block,
414413
return bcx;
415414
}
416415

417-
let elem = unpack_datum!(bcx, {
416+
let tmpdatum = unpack_datum!(bcx, {
418417
expr::trans_to_datum(bcx, element)
419418
});
420419

421-
let next_bcx = sub_block(bcx, ~"expr_repeat: while next");
422-
let loop_bcx = loop_scope_block(bcx, next_bcx, None, ~"expr_repeat", None);
423-
let cond_bcx = scope_block(loop_bcx, None, ~"expr_repeat: loop cond");
424-
let set_bcx = scope_block(loop_bcx, None, ~"expr_repeat: body: set");
425-
let inc_bcx = scope_block(loop_bcx, None, ~"expr_repeat: body: inc");
426-
Br(bcx, loop_bcx.llbb);
427-
428-
let loop_counter = {
429-
// i = 0
430-
let i = alloca(loop_bcx, T_i64());
431-
Store(loop_bcx, C_i64(0), i);
432-
433-
Br(loop_bcx, cond_bcx.llbb);
434-
i
435-
};
436-
437-
{ // i < count
438-
let lhs = Load(cond_bcx, loop_counter);
439-
let rhs = C_integral(T_i64(), count as u64, lib::llvm::False);
440-
let cmp_lr = ICmp(cond_bcx, lib::llvm::IntULT, lhs, rhs);
441-
let zext = ZExt(cond_bcx, cmp_lr, T_i8());
442-
let cond_val = ICmp(cond_bcx, lib::llvm::IntNE, zext, C_u8(0));
443-
444-
CondBr(cond_bcx, cond_val, set_bcx.llbb, next_bcx.llbb);
445-
}
446-
447-
{ // v[i] = elem
448-
let i = Load(set_bcx, loop_counter);
449-
let lleltptr = InBoundsGEP(set_bcx, lldest, [i]);
450-
let set_bcx = elem.copy_to(set_bcx, INIT, lleltptr);
420+
let mut temp_cleanups = ~[];
451421

452-
Br(set_bcx, inc_bcx.llbb);
422+
for uint::range(0, count) |i| {
423+
let lleltptr = GEPi(bcx, lldest, [i]);
424+
if i < count - 1 {
425+
// Copy all but the last one in.
426+
bcx = tmpdatum.copy_to(bcx, INIT, lleltptr);
427+
} else {
428+
// Move the last one in.
429+
bcx = tmpdatum.move_to(bcx, INIT, lleltptr);
430+
}
431+
add_clean_temp_mem(bcx, lleltptr, vt.unit_ty);
432+
temp_cleanups.push(lleltptr);
453433
}
454434

455-
{ // i += 1
456-
let i = Load(inc_bcx, loop_counter);
457-
let plusone = Add(inc_bcx, i, C_i64(1));
458-
Store(inc_bcx, plusone, loop_counter);
459-
460-
Br(inc_bcx, cond_bcx.llbb);
435+
for vec::each(temp_cleanups) |cleanup| {
436+
revoke_clean(bcx, *cleanup);
461437
}
462438

463-
return next_bcx;
464-
439+
return bcx;
465440
}
466441
}
467442
}

branches/auto/src/librustc/rustc.rc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
#[allow(non_camel_case_types)];
2525
#[allow(deprecated_mode)];
2626
#[warn(deprecated_pattern)];
27-
#[deny(deprecated_self)];
2827

2928
#[no_core];
3029

branches/auto/src/librustdoc/rustdoc.rc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
#[no_core];
2323

2424
#[allow(non_implicitly_copyable_typarams)];
25-
#[deny(deprecated_self)];
2625

2726
extern mod core(vers = "0.6");
2827
extern mod std(vers = "0.6");

branches/auto/src/librustdoc/trim_pass.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,6 @@ is interpreted as the brief description.
1818
use pass::Pass;
1919
use text_pass;
2020

21-
use core::str;
22-
2321
pub fn mk_pass() -> Pass {
2422
text_pass::mk_pass(~"trim", |s| s.trim().to_owned() )
2523
}

branches/auto/src/librusti/rusti.rc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222

2323
#[allow(vecs_implicitly_copyable,
2424
non_implicitly_copyable_typarams)];
25-
#[deny(deprecated_self)];
2625

2726
extern mod core(vers = "0.6");
2827
extern mod std(vers = "0.6");

branches/auto/src/librustpkg/rustpkg.rc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
#[no_core];
2121
#[allow(vecs_implicitly_copyable,
2222
non_implicitly_copyable_typarams)];
23-
#[deny(deprecated_self)];
2423

2524
extern mod core(vers = "0.6");
2625
extern mod std(vers = "0.6");

branches/auto/src/libstd/std.rc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ not required in or otherwise suitable for the core library.
2828

2929
#[allow(vecs_implicitly_copyable)];
3030
#[deny(non_camel_case_types)];
31-
#[deny(deprecated_self)];
3231
#[allow(deprecated_mutable_fields)];
3332

3433
#[no_core];

0 commit comments

Comments
 (0)