diff options
| author | bors <bors@rust-lang.org> | 2024-05-08 19:37:57 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2024-05-08 19:37:57 +0000 |
| commit | ec1b69852f0c24ae833a74303800db2229b6653e (patch) | |
| tree | f72f26468ba5c6246342183d47508f92e00b83e5 /compiler/rustc_codegen_llvm/src | |
| parent | c3202afa2865ad26ef407544c3768070bfed7bfe (diff) | |
| parent | 61517dbbe6f1f41c935007fcdca5eba8be7477e2 (diff) | |
| download | rust-ec1b69852f0c24ae833a74303800db2229b6653e.tar.gz rust-ec1b69852f0c24ae833a74303800db2229b6653e.zip | |
Auto merge of #124795 - scottmcm:simplify-slice-from-raw-parts, r=joboet
Avoid a cast in `ptr::slice_from_raw_parts(_mut)` Casting to `*const ()` or `*mut ()` is no longer needed after https://github.com/rust-lang/rust/pull/123840 so let's make the MIR smaller (and more inline-able, as seen in the tests). If [ACP#362](https://github.com/rust-lang/libs-team/issues/362) goes through we can keep calling `ptr::from_raw_parts(_mut)` in these also without the cast, but that hasn't had any libs-api attention yet, so I'm not waiting on it.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions
