Skip to content

Commit 34655b7

Browse files
committed
API: Add deprecation on RcArray, it has been renamed to ArcArray
1 parent 05405f5 commit 34655b7

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

src/aliases.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
//! Type aliases for common array sizes
22
//!
33
4+
#[allow(deprecated)]
45
use ::{
56
Ix,
67
Array,
@@ -147,6 +148,8 @@ pub type ArrayViewMut6<'a, A> = ArrayViewMut<'a, A, Ix6>;
147148
pub type ArrayViewMutD<'a, A> = ArrayViewMut<'a, A, IxDyn>;
148149

149150
/// one-dimensional shared ownership array
151+
#[allow(deprecated)]
150152
pub type RcArray1<A> = RcArray<A, Ix1>;
151153
/// two-dimensional shared ownership array
154+
#[allow(deprecated)]
152155
pub type RcArray2<A> = RcArray<A, Ix2>;

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1043,7 +1043,7 @@ pub struct ArrayBase<S, D>
10431043
/// It can act as both an owner as the data as well as a shared reference (view like).
10441044
///
10451045
/// **Note: this type alias is obsolete.** See the equivalent [`ArcArray`] instead.
1046-
// Use soon: #[deprecated(note="RcArray is replaced by ArcArray")]
1046+
#[deprecated(note="`RcArray` has been renamed to `ArcArray`")]
10471047
pub type RcArray<A, D> = ArrayBase<OwnedRcRepr<A>, D>;
10481048

10491049
/// An array where the data has shared ownership and is copy on write.

src/prelude.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
//! ```
2020
2121
#[doc(no_inline)]
22+
#[allow(deprecated)]
2223
pub use {
2324
ArrayBase,
2425
Array,

0 commit comments

Comments
 (0)