Skip to content

Commit e4e4da3

Browse files
committed
Fix docs and make Arc work without atomic ptr
1 parent 73e250a commit e4e4da3

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/layout/ranked.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ use crate::{
2929
///
3030
/// [DDyn]: crate::layout::dimensionality::DDyn
3131
/// [Rank]: Ranked::Rank
32-
/// [ndim]: Ranked::ndim
32+
/// [ndim]: Ranked::rank
3333
/// [N]: Dimensionality::N
3434
pub trait Ranked
3535
{
@@ -46,7 +46,11 @@ mod blanket_impls
4646
{
4747
use super::*;
4848
use alloc::rc::Rc;
49+
50+
#[cfg(target_has_atomic = "ptr")]
4951
use alloc::sync::Arc;
52+
#[cfg(not(target_has_atomic = "ptr"))]
53+
use portable_atomic_util::Arc;
5054

5155
impl<T> Ranked for &T
5256
where T: Ranked

0 commit comments

Comments
 (0)