rust/library/core/src
bors 5fb8a39266 Auto merge of #97367 - WaffleLapkin:stabilize_checked_slice_to_str_conv, r=dtolnay
Stabilize checked slice->str conversion functions

This PR stabilizes the following APIs as `const` functions in Rust 1.63:
```rust
// core::str

pub const fn from_utf8(v: &[u8]) -> Result<&str, Utf8Error>;

impl Utf8Error {
    pub const fn valid_up_to(&self) -> usize;
    pub const fn error_len(&self) -> Option<usize>;
}
```

Note that the `from_utf8_mut` function is not stabilized as unique references (`&mut _`) are [unstable in const context].

FCP: https://github.com/rust-lang/rust/issues/91006#issuecomment-1134593095

[unstable in const context]: https://github.com/rust-lang/rust/issues/57349
2022-06-19 05:51:42 +00:00
..
alloc Rollup merge of #97034 - fee1-dead-contrib:layout-hash, r=dtolnay 2022-05-28 08:45:51 +02:00
array Stabilize {slice,array}::from_ref 2022-05-24 22:33:31 +04:00
async_iter Add Stream alias for AsyncIterator 2022-03-15 20:59:13 -07:00
cell Move/rename lazy::{OnceCell, Lazy} to cell::{OnceCell, LazyCell} 2022-06-16 19:53:59 +04:00
char No need to check the assert all the time. 2022-04-16 19:30:23 +01:00
convert Warn on unused doc(hidden) on trait impl items 2022-05-08 22:53:14 +02:00
ffi Horizon OS STD support 2022-06-13 20:44:39 -07:00
fmt docs: make all the variadic impls use (T, ...) exactly 2022-06-11 10:32:39 -07:00
future update docs for std::future::IntoFuture 2022-06-08 15:21:16 +02:00
hash Auto merge of #97842 - notriddle:notriddle/tuple-docs, r=jsha,GuillaumeGomez 2022-06-16 11:13:30 +00:00
iter Expose iter::ByRefSized as unstable feature and use it 2022-06-18 00:03:54 +02:00
macros Grammar fix in the compile_error documentation 2022-06-09 12:40:10 +02:00
mem Rollup merge of #97675 - nvzqz:unsized-needs-drop, r=dtolnay 2022-06-17 07:16:55 +09:00
num Corrected EBNF grammar for from_str 2022-05-28 18:24:34 -04:00
ops Finish bumping stage0 2022-05-27 07:36:17 -04:00
panic Auto merge of #96348 - overdrivenpotato:inline-location, r=the8472 2022-04-30 16:33:12 +00:00
prelude Create 2024 edition 2022-04-02 02:45:49 -04:00
ptr Stabilize const_intrinsic_copy 2022-06-08 20:17:28 +09:00
slice Rollup merge of #97366 - WaffleLapkin:stabilize_array_slice_from_ref, r=dtolnay 2022-06-03 11:18:23 +02:00
str Auto merge of #97367 - WaffleLapkin:stabilize_checked_slice_to_str_conv, r=dtolnay 2022-06-19 05:51:42 +00:00
sync Stabilize scoped threads. 2022-06-11 15:01:52 +02:00
task Rollup merge of #93966 - rkuhn:patch-1, r=tmandry 2022-05-25 07:08:41 +09:00
unicode Add unicode fast path to is_printable 2022-05-31 10:51:35 +02:00
any.rs Fix typos in Provider API docs 2022-06-10 20:58:27 -07:00
ascii.rs Inline <EscapeDefault as Iterator>::next 2022-03-10 15:35:22 +01:00
asserting.rs [RFC 2011] Library code 2022-05-22 07:18:32 -03:00
bool.rs Stabilize bool::then_some 2022-05-04 13:22:08 +02:00
borrow.rs Make Borrow and BorrowMut impls const 2021-12-04 21:57:39 +09:00
cell.rs Move/rename lazy::{OnceCell, Lazy} to cell::{OnceCell, LazyCell} 2022-06-16 19:53:59 +04:00
clone.rs docs: show Clone and Copy on () doc pages 2022-06-07 12:12:49 -07:00
cmp.rs Rollup merge of #97950 - eggyal:issue-97945, r=Dylan-DPC 2022-06-12 17:35:41 -07:00
default.rs Add documentation 2022-04-07 20:03:24 -04:00
hint.rs Clarify unreachable_unchecked docs 2022-05-06 09:34:41 +02:00
internal_macros.rs ignore a doctest for the non-exported macro 2022-05-03 18:33:56 +09:00
intrinsics.rs Rollup merge of #97675 - nvzqz:unsized-needs-drop, r=dtolnay 2022-06-17 07:16:55 +09:00
lazy.rs Move/rename lazy::{OnceCell, Lazy} to cell::{OnceCell, LazyCell} 2022-06-16 19:53:59 +04:00
lib.rs Stabilize const_intrinsic_copy 2022-06-08 20:17:28 +09:00
marker.rs docs: show Clone and Copy on () doc pages 2022-06-07 12:12:49 -07:00
option.rs Rollup merge of #96033 - yaahc:expect-elaboration, r=scottmcm 2022-05-26 20:59:40 +02:00
panic.rs resolve the conflict in compiler/rustc_session/src/parse.rs 2022-03-16 20:12:30 +08:00
panicking.rs trivial cfg(bootstrap) changes 2022-04-05 23:18:40 +02:00
pin.rs Fix formatting error in pin.rs docs 2022-04-10 12:41:31 -07:00
primitive.rs mv std libs to library/ 2020-07-27 19:51:13 -05:00
primitive_docs.rs rustdoc: change "variadic tuple" notation to look less like real syntax 2022-06-14 12:21:38 -07:00
result.rs Rollup merge of #96033 - yaahc:expect-elaboration, r=scottmcm 2022-05-26 20:59:40 +02:00
time.rs Rollup merge of #96051 - newpavlov:duration_rounding, r=nagisa,joshtriplett 2022-05-26 20:15:07 -07:00
tuple.rs Add docs to maybe_tuple_doc! 2022-06-11 21:47:03 -07:00
unit.rs Use implicit capture syntax in format_args 2022-03-10 10:23:40 -05:00