Skip to content

Commit f6a27cb

Browse files
pcwaltonemberian
authored andcommitted
libextra: Fix even more merge fallout.
1 parent 3625781 commit f6a27cb

File tree

5 files changed

+2
-8
lines changed

5 files changed

+2
-8
lines changed

src/libextra/ebml.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,6 @@ pub mod reader {
9494

9595
use serialize;
9696

97-
use core::prelude::*;
9897
use core::cast::transmute;
9998
use core::int;
10099
use core::io;
@@ -106,6 +105,8 @@ pub mod reader {
106105

107106
#[cfg(target_arch = "x86")]
108107
#[cfg(target_arch = "x86_64")]
108+
use core::option::{None, Option, Some};
109+
use core::ptr::offset;
109110
use core::unstable::intrinsics::bswap32;
110111

111112
// ebml reading

src/libextra/num/bigint.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -382,8 +382,6 @@ impl Integer for BigUint {
382382
while m >= b {
383383
let (d0, d_unit, b_unit) = div_estimate(&m, &b, n);
384384
let mut d0 = d0;
385-
let mut d_unit = d_unit;
386-
let mut b_unit = b_unit;
387385
let mut prod = b * d0;
388386
while prod > m {
389387
// FIXME(#6050): overloaded operators force moves with generic types

src/libextra/test.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -751,9 +751,6 @@ impl BenchHarness {
751751
}
752752
753753
pub mod bench {
754-
use core::prelude::*;
755-
756-
use core::vec;
757754
use test::{BenchHarness, BenchSamples};
758755
759756
pub fn benchmark(f: &fn(&mut BenchHarness)) -> BenchSamples {

src/libextra/timer.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,6 @@ pub fn recv_timeout<T:Copy + Send>(iotask: &IoTask,
125125
-> Option<T> {
126126
let (timeout_po, timeout_ch) = stream::<()>();
127127
let mut timeout_po = timeout_po;
128-
let mut timeout_ch = timeout_ch;
129128
delayed_send(iotask, msecs, &timeout_ch, ());
130129

131130
// XXX: Workaround due to ports and channels not being &mut. They should

src/libstd/task/spawn.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -637,7 +637,6 @@ fn spawn_raw_oldsched(mut opts: TaskOpts, f: ~fn()) {
637637
let result: ~fn() = || {
638638
// Agh. Get move-mode items into the closure. FIXME (#2829)
639639
let (notify_chan, child_arc, ancestors) = child_data.take();
640-
let mut child_arc = child_arc;
641640
let mut ancestors = ancestors;
642641
// Child task runs this code.
643642

0 commit comments

Comments
 (0)