File tree 4 files changed +4
-4
lines changed
4 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 40
40
//!
41
41
//! ## Atomically reference counted pointers
42
42
//!
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`
44
44
//! type. It provides all the same functionality of `Rc`, except it requires
45
45
//! that the contained type `T` is shareable. Additionally, `Arc<T>` is itself
46
46
//! sendable while `Rc<T>` is not.
@@ -164,7 +164,7 @@ mod boxed {
164
164
mod boxed_test;
165
165
pub mod collections;
166
166
#[ cfg( target_has_atomic = "ptr" ) ]
167
- pub mod arc ;
167
+ pub mod sync ;
168
168
pub mod rc;
169
169
pub mod raw_vec;
170
170
File renamed without changes.
Original file line number Diff line number Diff line change @@ -18,10 +18,10 @@ pub use self::if_arc::*;
18
18
#[ cfg( target_has_atomic = "ptr" ) ]
19
19
mod if_arc {
20
20
use super :: * ;
21
- use arc:: Arc ;
22
21
use core:: marker:: PhantomData ;
23
22
use core:: mem;
24
23
use core:: ptr:: { self , NonNull } ;
24
+ use sync:: Arc ;
25
25
26
26
/// A way of waking up a specific task.
27
27
///
Original file line number Diff line number Diff line change 18
18
#![ stable( feature = "rust1" , since = "1.0.0" ) ]
19
19
20
20
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
21
- pub use alloc_crate:: arc :: { Arc , Weak } ;
21
+ pub use alloc_crate:: sync :: { Arc , Weak } ;
22
22
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
23
23
pub use core:: sync:: atomic;
24
24
You can’t perform that action at this time.
0 commit comments