rust/library/core/tests
Yuki Okushi 46b67ab0f9
Rollup merge of #84105 - WaffleLapkin:stabilize_array_from_ref, r=m-ou-se
stabilize `core::array::{from_ref,from_mut}` in `1.53.0`

I didn't get any response in https://github.com/rust-lang/rust/issues/77101#issuecomment-761831104, so I figured out I can try opening stabilization pr.

---

This PR stabilizes following functions:
```rust
// core::array
pub fn from_ref<T>(s: &T) -> &[T; 1];
pub fn from_mut<T>(s: &mut T) -> &mut [T; 1];
```

Functions are similar to already stabilized `core::slice::{`[`from_ref`](https://doc.rust-lang.org/std/slice/fn.from_ref.html),[`from_mut`](https://doc.rust-lang.org/std/slice/fn.from_mut.html)`}` and were unstable without any problems/questions for a while now.

---

resolves #77101

``@rustbot`` modify labels: +T-libs
2021-04-25 01:53:10 +09:00
..
fmt Format Struct { .. } on one line even with {:#?}. 2021-04-21 13:50:56 +02:00
hash
iter Remove Option::{unwrap_none, expect_none}. 2021-03-14 12:54:34 +01:00
num Preserve signed zero on roundtrip 2021-03-22 17:02:09 -07:00
ops Expand the docs for ops::ControlFlow a bit 2021-02-06 22:36:05 -08:00
alloc.rs
any.rs
array.rs Remove FixedSizeArray 2021-04-11 00:00:00 +00:00
ascii.rs
atomic.rs enable atomic_min/max tests in Miri 2021-03-02 19:58:55 +01:00
bool.rs
cell.rs
char.rs
clone.rs Fix borrow and deref 2021-03-03 11:23:29 +01:00
cmp.rs
const_ptr.rs Constify ptr::write and the write[_unaligned] methods on *mut T 2021-02-23 18:00:01 +01:00
intrinsics.rs
lazy.rs
lib.rs Rollup merge of #84105 - WaffleLapkin:stabilize_array_from_ref, r=m-ou-se 2021-04-25 01:53:10 +09:00
macros.rs
manually_drop.rs
mem.rs Allow use of deprecated std::raw in a test for that feature 2021-04-15 19:16:18 +02:00
nonzero.rs
ops.rs Expand the docs for ops::ControlFlow a bit 2021-02-06 22:36:05 -08:00
option.rs
pattern.rs
pin.rs
ptr.rs Bump cfgs 2021-04-04 14:57:05 -04:00
result.rs Add test for Result::into_err 2021-03-23 21:41:50 +01:00
slice.rs Implement indexing slices with pairs of ops::Bound<usize> 2021-04-13 09:57:24 -04:00
str_lossy.rs
str.rs
task.rs
time.rs
tuple.rs
unicode.rs