Skip to content

Commit d7fa04c

Browse files
committed
Refactor alloc/sync.rs into separate files
- `alloc::sync::Arc` now lives in `libraries/alloc/sync/arc.rs` - `alloc::sync::Weak` now lives in `libraries/alloc/sync/weak.rs` - tests now live in `alloc/tests/arc.rs`
1 parent 301ad8a commit d7fa04c

File tree

8 files changed

+1179
-1114
lines changed

8 files changed

+1179
-1114
lines changed

library/alloc/src/sync.rs renamed to library/alloc/src/sync/arc.rs

+7-491
Large diffs are not rendered by default.

library/alloc/src/sync/mod.rs

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
#![stable(feature = "rust1", since = "1.0.0")]
2+
3+
//! Thread-safe reference-counting pointers.
4+
//!
5+
//! See the [`Arc<T>`][Arc] documentation for more details.
6+
7+
mod arc;
8+
mod weak;
9+
10+
#[stable(feature = "rust1", since = "1.0.0")]
11+
pub use arc::Arc;
12+
13+
#[stable(feature = "rust1", since = "1.0.0")]
14+
pub use weak::Weak;
15+
16+
use arc::ArcInner;

0 commit comments

Comments
 (0)