Files
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
..
…
2022-08-30 13:39:30 +02:00
…
2022-10-17 13:14:15 -04:00
2022-10-19 23:54:00 +01:00
2022-09-19 15:07:12 +02:00
…
…
2022-09-22 02:12:06 -04:00
2022-09-16 11:48:42 +08:00
…
…
2022-08-25 07:42:07 +01:00
2022-10-01 11:45:52 -05:00
…
…
…