Fix the fallout of removing feature(import_shadowing).

This commit is contained in:
Eduard Burtescu
2014-12-15 06:03:00 +02:00
parent d5267d5845
commit 5193d542f6
20 changed files with 41 additions and 65 deletions

View File

@@ -15,21 +15,10 @@
#![experimental]
#![allow(missing_docs)]
use clone::Clone;
use c_str::ToCStr;
use iter::IteratorExt;
use prelude::*;
use mem;
use ops::*;
use option::*;
use option::Option::{None, Some};
use os;
use path::{Path,GenericPath};
use result::*;
use result::Result::{Err, Ok};
use slice::{AsSlice,SliceExt};
use str;
use string::String;
use vec::Vec;
#[allow(missing_copy_implementations)]
pub struct DynamicLibrary {
@@ -213,13 +202,10 @@ mod test {
pub mod dl {
pub use self::Rtld::*;
use c_str::{CString, ToCStr};
use prelude::*;
use c_str::CString;
use libc;
use ops::FnOnce;
use ptr;
use result::*;
use result::Result::{Err, Ok};
use string::String;
pub unsafe fn open_external<T: ToCStr>(filename: T) -> *mut u8 {
filename.with_c_str(|raw_name| {