Skip to content

Commit

Permalink
Auto merge of #100848 - xfix:use-metadata-for-slice-len, r=thomcc
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
bors committed Oct 24, 2022
2 parents bf380d7 + 608f692 commit 3c5905a
Showing 0 changed files with 0 additions and 0 deletions.

0 comments on commit 3c5905a

Please sign in to comment.