File tree Expand file tree Collapse file tree 4 files changed +4
-4
lines changed Expand file tree Collapse file tree 4 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 4040//!
4141//! ## Atomically reference counted pointers
4242//!
43- //! The [`Arc`](arc /index.html) type is the threadsafe equivalent of the `Rc`
43+ //! The [`Arc`](sync /index.html) type is the threadsafe equivalent of the `Rc`
4444//! type. It provides all the same functionality of `Rc`, except it requires
4545//! that the contained type `T` is shareable. Additionally, `Arc<T>` is itself
4646//! sendable while `Rc<T>` is not.
@@ -164,7 +164,7 @@ mod boxed {
164164mod boxed_test;
165165pub mod collections;
166166#[ cfg( target_has_atomic = "ptr" ) ]
167- pub mod arc ;
167+ pub mod sync ;
168168pub mod rc;
169169pub mod raw_vec;
170170
File renamed without changes.
Original file line number Diff line number Diff line change @@ -18,10 +18,10 @@ pub use self::if_arc::*;
1818#[ cfg( target_has_atomic = "ptr" ) ]
1919mod if_arc {
2020 use super :: * ;
21- use arc:: Arc ;
2221 use core:: marker:: PhantomData ;
2322 use core:: mem;
2423 use core:: ptr:: { self , NonNull } ;
24+ use sync:: Arc ;
2525
2626 /// A way of waking up a specific task.
2727 ///
Original file line number Diff line number Diff line change 1818#![ stable( feature = "rust1" , since = "1.0.0" ) ]
1919
2020#[ stable( feature = "rust1" , since = "1.0.0" ) ]
21- pub use alloc_crate:: arc :: { Arc , Weak } ;
21+ pub use alloc_crate:: sync :: { Arc , Weak } ;
2222#[ stable( feature = "rust1" , since = "1.0.0" ) ]
2323pub use core:: sync:: atomic;
2424
You can’t perform that action at this time.
0 commit comments