Skip to content

Commit

Permalink
Fixing some various warnings about unused imports
Browse files Browse the repository at this point in the history
  • Loading branch information
alexcrichton committed Apr 23, 2013
1 parent 4c08a8d commit 0c2ab66
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 4 deletions.
3 changes: 2 additions & 1 deletion src/libcore/rt/uvio.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,15 @@
use option::*;
use result::*;

use super::io::net::ip::{IpAddr, Ipv4}; // n.b. Ipv4 is used only in tests
use super::io::net::ip::IpAddr;
use super::uv::*;
use super::rtio::*;
use ops::Drop;
use cell::{Cell, empty_cell};
use cast::transmute;
use super::sched::{Scheduler, local_sched};

#[cfg(test)] use super::io::net::ip::Ipv4;
#[cfg(test)] use super::sched::Task;
#[cfg(test)] use unstable::run_in_bare_thread;
#[cfg(test)] use uint;
Expand Down
1 change: 1 addition & 0 deletions src/libcore/str/ascii.rs
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,7 @@ impl ToStrConsume for ~[Ascii] {
}
}

#[cfg(test)]
mod tests {
use super::*;

Expand Down
2 changes: 1 addition & 1 deletion src/librustc/back/link.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ use core::char;
use core::hash::Streaming;
use core::hash;
use core::io::WriterUtil;
use core::libc::{c_int, c_uint, c_char};
use core::libc::{c_int, c_uint};
use core::os::consts::{macos, freebsd, linux, android, win32};
use core::os;
use core::ptr;
Expand Down
2 changes: 1 addition & 1 deletion src/librustc/middle/trans/base.rs
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ use core::hash;
use core::hashmap::{HashMap, HashSet};
use core::int;
use core::io;
use core::libc::{c_uint, c_ulonglong};
use core::libc::c_uint;
use core::uint;
use std::time;
use syntax::ast::ident;
Expand Down
2 changes: 1 addition & 1 deletion src/librustc/middle/ty.rs
Original file line number Diff line number Diff line change
Expand Up @@ -514,7 +514,7 @@ pub struct substs {
}

mod primitives {
use super::{sty, t_box_};
use super::t_box_;

use syntax::ast;

Expand Down

5 comments on commit 0c2ab66

@bors
Copy link
Contributor

@bors bors commented on 0c2ab66 Apr 24, 2013

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

saw approval from pcwalton
at alexcrichton@0c2ab66

@bors
Copy link
Contributor

@bors bors commented on 0c2ab66 Apr 24, 2013

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

merging alexcrichton/rust/more-unsafe = 0c2ab66 into auto

@bors
Copy link
Contributor

@bors bors commented on 0c2ab66 Apr 24, 2013

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

alexcrichton/rust/more-unsafe = 0c2ab66 merged ok, testing candidate = 706096b

@bors
Copy link
Contributor

@bors bors commented on 0c2ab66 Apr 24, 2013

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bors
Copy link
Contributor

@bors bors commented on 0c2ab66 Apr 24, 2013

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fast-forwarding incoming to auto = 706096b

Please sign in to comment.