rust/library/core/src
bors 56f132565e Auto merge of #100848 - xfix:use-metadata-for-slice-len, r=thomcc
Use ptr::metadata in <[T]>::len implementation

This avoids duplication of ptr::metadata code.

I believe this is acceptable as the previous approach essentially duplicated `ptr::metadata` because back then `rustc_allow_const_fn_unstable` annotation did not exist.

I would like somebody to ping `@rust-lang/wg-const-eval` as the documentation says:

> Always ping `@rust-lang/wg-const-eval` if you are adding more rustc_allow_const_fn_unstable attributes to any const fn.
2022-10-24 04:14:46 +00:00
..
alloc
array Rollup merge of #100462 - zohnannor:master, r=thomcc 2022-10-23 14:48:13 -07:00
async_iter
cell
char Clarify the possible return values of len_utf16 2022-10-16 11:06:19 -04:00
convert
ffi
fmt
future
hash
iter specialize slice_iter.copied().next_chunk() 2022-10-19 00:02:00 +02:00
macros
mem MaybeUninit: use assume_init_drop() in the partially initialized array example 2022-10-23 19:09:18 +02:00
num Rollup merge of #101889 - tspiteri:redoc-uint-adc-sbb, r=m-ou-se 2022-10-18 21:18:46 +02:00
ops
panic
prelude
ptr Auto merge of #100848 - xfix:use-metadata-for-slice-len, r=thomcc 2022-10-24 04:14:46 +00:00
slice Auto merge of #100848 - xfix:use-metadata-for-slice-len, r=thomcc 2022-10-24 04:14:46 +00:00
str Fix typo in ReverseSearcher docs 2022-10-17 13:14:15 -04:00
sync Remove extra spaces 2022-10-19 23:54:00 +01:00
task
unicode
any.rs
ascii.rs
asserting.rs
bool.rs
borrow.rs
cell.rs Rollup merge of #101717 - Pointerbender:unsafecell-memory-layout, r=Amanieu 2022-10-16 11:41:12 +09:00
clone.rs
cmp.rs
const_closure.rs
default.rs
error.md
error.rs
hint.rs
internal_macros.rs
intrinsics.rs Adjust transmute{,_copy} to be clearer about which of T and U is input vs output 2022-10-19 22:36:14 -07:00
lib.rs Add default trait implementations for "c-unwind" ABI function pointers 2022-10-19 19:17:32 -07:00
marker.rs PhantomData: inline a macro that is used only once 2022-10-16 10:37:51 +02:00
option.rs
panic.rs
panicking.rs
pin.rs
primitive_docs.rs
primitive.rs
result.rs
time.rs Fix Duration::{try_,}from_secs_f{32,64}(-0.0) 2022-10-14 16:07:09 +01:00
tuple.rs
unit.rs