Skip to content

Commit c7638ed

Browse files
committed
Rename alloc::arc to alloc::sync, to match std::sync
1 parent 3394fb7 commit c7638ed

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

src/liballoc/lib.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
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 {
164164
mod boxed_test;
165165
pub mod collections;
166166
#[cfg(target_has_atomic = "ptr")]
167-
pub mod arc;
167+
pub mod sync;
168168
pub mod rc;
169169
pub mod raw_vec;
170170

File renamed without changes.

src/liballoc/task.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@ pub use self::if_arc::*;
1818
#[cfg(target_has_atomic = "ptr")]
1919
mod 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
///

src/libstd/sync/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
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")]
2323
pub use core::sync::atomic;
2424

0 commit comments

Comments
 (0)