about summary refs log tree commit diff
path: root/compiler/rustc_interface/src/errors.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2024-05-08 19:37:57 +0000
committerbors <bors@rust-lang.org>2024-05-08 19:37:57 +0000
commitec1b69852f0c24ae833a74303800db2229b6653e (patch)
treef72f26468ba5c6246342183d47508f92e00b83e5 /compiler/rustc_interface/src/errors.rs
parentc3202afa2865ad26ef407544c3768070bfed7bfe (diff)
parent61517dbbe6f1f41c935007fcdca5eba8be7477e2 (diff)
downloadrust-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_interface/src/errors.rs')
0 files changed, 0 insertions, 0 deletions