rust/library/core/src
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
..
alloc Fix const stability since versions. 2021-03-15 14:39:18 +00:00
array Rollup merge of #84105 - WaffleLapkin:stabilize_array_from_ref, r=m-ou-se 2021-04-25 01:53:10 +09:00
char Update char::escape_debug_ext to handle different escapes in strings vs. chars 2021-03-26 11:23:51 +03:00
convert Get rid of "[+] show undocumented items" toggle on numeric From impls 2021-04-22 11:51:05 -07:00
fmt Rollup merge of #84390 - m-ou-se:make-debug-non-exhaustive-without-fields-a-little-bit-less-verbose, r=kennytm 2021-04-21 23:06:21 +02:00
future Rename #[doc(spotlight)] to #[doc(notable_trait)] 2021-03-15 13:59:54 -07:00
hash Replace all fmt.pad with debug_struct 2021-04-21 14:38:24 +02:00
iter Rollup merge of #84489 - amorison:issue-83969-fix, r=yaahc 2021-04-24 12:17:09 +09:00
macros Bump cfgs 2021-04-04 14:57:05 -04:00
mem Remove delete alias from mem::drop. 2021-04-21 21:54:39 +02:00
num Rollup merge of #84251 - RalfJung:non-zero-const-since, r=kennytm 2021-04-21 23:06:15 +02:00
ops Say that it "may panic" 2021-04-18 18:16:10 +02:00
prelude Bump cfgs 2021-04-04 14:57:05 -04:00
ptr Auto merge of #84061 - AngelicosPhosphoros:issue-75598-add-inline-always-arithmetic, r=nagisa 2021-04-17 23:31:10 +00:00
slice Auto merge of #77704 - AnthonyMikh:slice_index_with_ops_bound_pair, r=m-ou-se 2021-04-22 15:36:27 +00:00
str Auto merge of #82585 - TrolledWoods:master, r=dtolnay 2021-04-23 02:48:13 +00:00
stream Remove Stream::next 2021-01-23 16:54:56 +01:00
sync Stabilize atomic_fetch_update methods on AtomicBool and AtomicPtr. 2021-04-11 11:45:46 +02:00
task stabilize the poll_map feature 2021-01-13 14:51:27 +10:00
unicode Add a check for ASCII characters in to_upper and to_lower 2021-02-26 11:39:36 -06:00
any.rs Change the Debug impl of Any and UnsafeCell to use finish_non_exhaustive 2021-04-21 14:51:04 +02:00
ascii.rs Replace all fmt.pad with debug_struct 2021-04-21 14:38:24 +02:00
bool.rs Stabilise then 2020-11-22 13:45:14 +00:00
borrow.rs Fix borrow and deref 2021-03-03 11:23:29 +01:00
cell.rs Use #[inline(always)] on trivial UnsafeCell methods 2021-04-04 11:55:13 -07:00
clone.rs Fix core tests 2021-03-03 11:22:49 +01:00
cmp.rs Add note about reverting a workaround in the future 2021-04-10 18:47:48 +02:00
default.rs Add diagnostic item to Default trait 2021-03-04 10:14:48 -08:00
ffi.rs Replace all fmt.pad with debug_struct 2021-04-21 14:38:24 +02:00
hint.rs Fixed documentation error 2021-01-03 19:54:54 +02:00
internal_macros.rs mv std libs to library/ 2020-07-27 19:51:13 -05:00
intrinsics.rs stabilize const_cttz 2021-04-11 19:13:27 +02:00
lazy.rs Capitalize safety comments 2020-09-08 22:26:44 -04:00
lib.rs Auto merge of #82585 - TrolledWoods:master, r=dtolnay 2021-04-23 02:48:13 +00:00
marker.rs Always mention Box::pin when dealing with !Unpin 2021-04-06 19:55:45 -07:00
option.rs Clarify the difference between insert and get_or_insert 2021-04-19 18:17:45 +03:00
panic.rs Implement new panic!() behaviour for Rust 2021. 2021-01-25 13:48:11 +01:00
panicking.rs Fix panic message of assert_failed_inner 2021-03-13 18:50:43 +08:00
pin.rs Fix overlength lines in core::pin. 2021-01-05 20:14:02 +01:00
primitive.rs mv std libs to library/ 2020-07-27 19:51:13 -05:00
raw.rs Deprecate the core::raw / std::raw module 2021-04-15 02:32:33 +02:00
result.rs Add Result::into_err where the Ok variant can never happen 2021-03-23 21:24:26 +01:00
time.rs Mark Duration::is_zero as rustc_const_stable. 2021-04-12 16:32:57 +02:00
tuple.rs mv std libs to library/ 2020-07-27 19:51:13 -05:00
unit.rs mv std libs to library/ 2020-07-27 19:51:13 -05:00