Skip to content

Commit ed97b42

Browse files
committed
add tracking issue
1 parent 179f63d commit ed97b42

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

library/core/src/array/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,14 @@ mod iter;
2020
pub use iter::IntoIter;
2121

2222
/// Converts a reference to `T` into a reference to an array of length 1 (without copying).
23-
#[unstable(feature = "array_from_ref", issue = "none")]
23+
#[unstable(feature = "array_from_ref", issue = "77101")]
2424
pub fn from_ref<T>(s: &T) -> &[T; 1] {
2525
// SAFETY: Converting `&T` to `&[T; 1]` is sound.
2626
unsafe { &*(s as *const T).cast::<[T; 1]>() }
2727
}
2828

2929
/// Converts a mutable reference to `T` into a mutable reference to an array of length 1 (without copying).
30-
#[unstable(feature = "array_from_ref", issue = "none")]
30+
#[unstable(feature = "array_from_ref", issue = "77101")]
3131
pub fn from_mut<T>(s: &mut T) -> &mut [T; 1] {
3232
// SAFETY: Converting `&mut T` to `&mut [T; 1]` is sound.
3333
unsafe { &mut *(s as *mut T).cast::<[T; 1]>() }

0 commit comments

Comments
 (0)