]> git.lizzy.rs Git - rust.git/blobdiff - src/libstd/unstable/dynamic_lib.rs
Find the cratemap at runtime on windows.
[rust.git] / src / libstd / unstable / dynamic_lib.rs
index d8a07eeb8b7d3d1ff7b15179b04336624d67d12d..41ff79bc8845815db4eda5382c676bb04473eb62 100644 (file)
@@ -26,7 +26,7 @@
 pub struct DynamicLibrary { priv handle: *libc::c_void }
 
 impl Drop for DynamicLibrary {
-    fn drop(&self) {
+    fn drop(&mut self) {
         match do dl::check_for_errors_in {
             unsafe {
                 dl::close(self.handle)
@@ -138,7 +138,7 @@ fn test_errors_do_not_crash() {
 #[cfg(target_os = "android")]
 #[cfg(target_os = "macos")]
 #[cfg(target_os = "freebsd")]
-mod dl {
+pub mod dl {
     use c_str::ToCStr;
     use libc;
     use path;
@@ -207,7 +207,7 @@ pub enum RTLD {
 }
 
 #[cfg(target_os = "win32")]
-mod dl {
+pub mod dl {
     use os;
     use libc;
     use path;