rust/library/core/src/slice
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
..
iter Make ZST checks in core/alloc more readable 2022-09-22 23:12:29 -07:00
ascii.rs EscapeAscii is not an ExactSizeIterator 2022-07-29 00:35:38 +00:00
cmp.rs make memcmp return a value of c_int_width instead of i32 2022-04-02 17:21:08 -07:00
index.rs Auto merge of #100982 - fee1-dead-contrib:const-impl-requires-const-trait, r=oli-obk 2022-09-22 04:22:24 +00:00
iter.rs Auto merge of #96711 - emilio:inline-slice-clone, r=nikic 2022-10-10 12:09:21 +00:00
memchr.rs Rollup merge of #100823 - WaffleLapkin:less_offsets, r=scottmcm 2022-09-24 14:29:52 +02:00
mod.rs Auto merge of #100848 - xfix:use-metadata-for-slice-len, r=thomcc 2022-10-24 04:14:46 +00:00
raw.rs Sync docs of slice::{from_ptr_range, from_ptr_range_mut} 2022-10-03 00:44:50 +00:00
rotate.rs Make ZST checks in core/alloc more readable 2022-09-22 23:12:29 -07:00
sort.rs Make ZST checks in core/alloc more readable 2022-09-22 23:12:29 -07:00
specialize.rs Remove size_of == 1 case from fill specialization. 2021-08-09 19:25:28 +02:00