Skip to content

Remove unused imports #5336

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Mar 14, 2013
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion src/libcore/at_vec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
use cast::transmute;
use kinds::Copy;
use iter;
use libc;
use option::Option;
use ptr::addr_of;
use sys;
Expand Down
4 changes: 0 additions & 4 deletions src/libcore/num/cmath.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,6 @@

#[doc(hidden)]; // FIXME #3538

use libc::c_int;
use libc::c_float;
use libc::c_double;

// function names are almost identical to C's libmath, a few have been
// renamed, grep for "rename:"

Expand Down
6 changes: 2 additions & 4 deletions src/libcore/vec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ use iter::BaseIter;
use iter;
use kinds::Copy;
use libc;
use libc::size_t;
use option::{None, Option, Some};
use unstable::intrinsics;
use ptr;
Expand Down Expand Up @@ -76,9 +75,9 @@ pub fn reserve<T>(v: &mut ~[T], n: uint) {
let td = sys::get_type_desc::<T>();
if ((**ptr).box_header.ref_count ==
managed::raw::RC_MANAGED_UNIQUE) {
rustrt::vec_reserve_shared_actual(td, ptr, n as size_t);
rustrt::vec_reserve_shared_actual(td, ptr, n as libc::size_t);
} else {
rustrt::vec_reserve_shared(td, ptr, n as size_t);
rustrt::vec_reserve_shared(td, ptr, n as libc::size_t);
}
}
}
Expand Down Expand Up @@ -2071,7 +2070,6 @@ pub mod raw {
use kinds::Copy;
use managed;
use option::{None, Some};
use option;
use unstable::intrinsics;
use ptr::addr_of;
use ptr;
Expand Down
1 change: 0 additions & 1 deletion src/librustc/middle/trans/controlflow.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ use syntax::ast::ident;
use syntax::ast_map::path_mod;
use syntax::ast_util;
use syntax::codemap::span;
use syntax::print::pprust::expr_to_str;

pub fn trans_block(bcx: block, b: &ast::blk, dest: expr::Dest) -> block {
let _icx = bcx.insn_ctxt("trans_block");
Expand Down
1 change: 0 additions & 1 deletion src/librustc/middle/typeck/check/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1706,7 +1706,6 @@ pub fn check_expr_with_unifier(fcx: @mut FnCtxt,
let expr_t = structurally_resolved_type(fcx, expr.span,
fcx.expr_ty(base));
let (base_t, derefs) = do_autoderef(fcx, expr.span, expr_t);
let n_tys = tys.len();

match structure_of(fcx, expr.span, base_t) {
ty::ty_struct(base_id, ref substs) => {
Expand Down
1 change: 0 additions & 1 deletion src/libstd/test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ use core::either::Either;
use core::either;
use core::io::WriterUtil;
use core::io;
use core::libc::size_t;
use core::comm::{stream, Chan, Port, SharedChan};
use core::option;
use core::prelude::*;
Expand Down