about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMara Bos <m-ou.se@m-ou.se>2020-10-10 20:15:55 +0200
committerMara Bos <m-ou.se@m-ou.se>2020-12-08 22:57:49 +0100
commit9dc7f13c39febc6466c8f79ad4c270ab8a63881f (patch)
tree625e4279738b68cbfc3da237133728da3d1a541e
parent2bc5d44ca963a4dccf09c993fe9813f6a795aedf (diff)
downloadrust-9dc7f13c39febc6466c8f79ad4c270ab8a63881f.tar.gz
rust-9dc7f13c39febc6466c8f79ad4c270ab8a63881f.zip
Remove unnecessary import of `crate::marker` in std::sys_common::remutex.
It was used for marker::Send, but Send is already in scope.
-rw-r--r--library/std/src/sys_common/remutex.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/library/std/src/sys_common/remutex.rs b/library/std/src/sys_common/remutex.rs
index 162eab2388d..35d6701efd0 100644
--- a/library/std/src/sys_common/remutex.rs
+++ b/library/std/src/sys_common/remutex.rs
@@ -2,7 +2,6 @@
 mod tests;
 
 use crate::fmt;
-use crate::marker;
 use crate::ops::Deref;
 use crate::panic::{RefUnwindSafe, UnwindSafe};
 use crate::sys::mutex as sys;
@@ -40,7 +39,7 @@ pub struct ReentrantMutexGuard<'a, T: 'a> {
     lock: &'a ReentrantMutex<T>,
 }
 
-impl<T> !marker::Send for ReentrantMutexGuard<'_, T> {}
+impl<T> !Send for ReentrantMutexGuard<'_, T> {}
 
 impl<T> ReentrantMutex<T> {
     /// Creates a new reentrant mutex in an unlocked state.