about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2022-10-24 04:14:46 +0000
committerbors <bors@rust-lang.org>2022-10-24 04:14:46 +0000
commit56f132565eb31eeb9ec7e1800a6ab2ca354e710e (patch)
tree3352d72b0837b9e077b2da975d869cc8f243fef6 /compiler/rustc_codegen_llvm/src
parent7feb003882ecf7699e6705b537673e20985accff (diff)
parent155b4c28c11b56bfe94acab0006530694acfcee4 (diff)
downloadrust-56f132565eb31eeb9ec7e1800a6ab2ca354e710e.tar.gz
rust-56f132565eb31eeb9ec7e1800a6ab2ca354e710e.zip
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.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions