about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2020-09-05 21:02:18 +0000
committerbors <bors@rust-lang.org>2020-09-05 21:02:18 +0000
commitcdc8f0606d0f3c4f3866643382c8a5776d1bdaed (patch)
tree68ebd8e07e6b89ec944ab5d1163eaccee08880f1 /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
parentde921ab3c3aa25d65b1476d77285da1ca99af397 (diff)
parent35068326b5966530225c8fc01bcdaa0fb4041138 (diff)
downloadrust-cdc8f0606d0f3c4f3866643382c8a5776d1bdaed.tar.gz
rust-cdc8f0606d0f3c4f3866643382c8a5776d1bdaed.zip
Auto merge of #76217 - RalfJung:maybe-uninit-slice, r=KodrAus
rename MaybeUninit slice methods

The `first` methods conceptually point to the whole slice, not just its first element, so rename them to be consistent with the raw ptr methods on ref-slices.

Also, do the equivalent of https://github.com/rust-lang/rust/pull/76047 for the slice reference getters, and make them part of https://github.com/rust-lang/rust/issues/63569 (so far they somehow had no tracking issue).

* first_ptr -> slice_as_ptr
* first_ptr_mut -> slice_as_mut_ptr
* slice_get_ref -> slice_assume_init_ref
* slice_get_mut -> slice_assume_init_mut
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions