rust/library/core/src/ptr
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
..
alignment.rs Fix types in documentation for Alignment::as_usize and Alignmnet::as_nonzero 2022-10-16 23:44:06 -06:00
const_ptr.rs more dupe word typos 2022-10-14 12:57:56 +08:00
metadata.rs Use ptr::metadata in <[T]>::len implementation 2022-08-21 15:19:32 +00:00
mod.rs Auto merge of #100848 - xfix:use-metadata-for-slice-len, r=thomcc 2022-10-24 04:14:46 +00:00
mut_ptr.rs Argument type for mutable with_metadata_of (#75091) 2022-10-21 14:46:14 +02:00
non_null.rs Add a missing precondition check 2022-10-20 20:40:35 -04:00
unique.rs Implement core::ptr::Unique on top of NonNull 2022-04-14 19:35:40 +02:00