rollup merge of #23197: aatxe/master

`std::dynamic_library` is currently using `std::old_io::Path` specifically. This change brings the API in alignment with `std::fs::File` by having it take `std::path::AsPath`. The Windows code should work, but I admittedly haven't tried it (I don't have a Windows machine readily available right now).

r? @alexcrichton
This commit is contained in:
Alex Crichton 2015-03-27 13:04:27 -07:00
commit 828c36932a
3 changed files with 26 additions and 34 deletions

View file

@ -23,7 +23,6 @@
//! this takes the route of using StackWalk64 in order to walk the stack.
#![allow(dead_code)]
#![allow(deprecated)] // for old path for dynamic lib
use prelude::v1::*;
use io::prelude::*;
@ -34,7 +33,7 @@ use intrinsics;
use io;
use libc;
use mem;
use old_path::Path;
use path::Path;
use ptr;
use str;
use sync::{StaticMutex, MUTEX_INIT};