about summary refs log tree commit diff
path: root/src/libstd/dynamic_lib.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2014-09-16 23:26:11 +0000
committerbors <bors@rust-lang.org>2014-09-16 23:26:11 +0000
commit0e784e16840e8a0c623cc6166de26da9334db3d6 (patch)
treecb9ee37525225e3cbe4cda7d7954f2f72d24acb8 /src/libstd/dynamic_lib.rs
parentceb9bbfbf5933f9df238fecdd14e75304439c4f4 (diff)
parentfc525eeb4ec3443d29bce677f589b19f31c189bb (diff)
downloadrust-0e784e16840e8a0c623cc6166de26da9334db3d6.tar.gz
rust-0e784e16840e8a0c623cc6166de26da9334db3d6.zip
auto merge of #17268 : aturon/rust/mut-conventions, r=alexcrichton
As per [RFC 52](https://github.com/rust-lang/rfcs/blob/master/active/0052-ownership-variants.md), use `_mut` suffixes to mark mutable variants, and `into_iter` for moving iterators. Additional details and motivation in the RFC.

Note that the iterator *type* names are not changed by this RFC; those are awaiting a separate RFC for standardization.

Closes #13660
Closes #16810

[breaking-change]
Diffstat (limited to 'src/libstd/dynamic_lib.rs')
-rw-r--r--src/libstd/dynamic_lib.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstd/dynamic_lib.rs b/src/libstd/dynamic_lib.rs
index eee3e81f5fc..e929f140dbd 100644
--- a/src/libstd/dynamic_lib.rs
+++ b/src/libstd/dynamic_lib.rs
@@ -301,7 +301,7 @@ pub mod dl {
     }
 
     pub unsafe fn open_internal() -> *mut u8 {
-        let mut handle = ptr::mut_null();
+        let mut handle = ptr::null_mut();
         GetModuleHandleExW(0 as libc::DWORD, ptr::null(), &mut handle);
         handle as *mut u8
     }