about summary refs log tree commit diff
path: root/compiler/rustc_interface/src
diff options
context:
space:
mode:
authorScott McMurray <scottmcm@users.noreply.github.com>2024-05-06 01:44:27 -0700
committerScott McMurray <scottmcm@users.noreply.github.com>2024-05-06 01:53:54 -0700
commit61517dbbe6f1f41c935007fcdca5eba8be7477e2 (patch)
treebbcadd803f973066e2ce1fc75ce4ab32fed35864 /compiler/rustc_interface/src
parentd287f3e4eeaf680e8fe875f1ec75cca68f357d30 (diff)
downloadrust-61517dbbe6f1f41c935007fcdca5eba8be7477e2.tar.gz
rust-61517dbbe6f1f41c935007fcdca5eba8be7477e2.zip
Avoid a cast in `ptr::slice_from_raw_parts(_mut)`
Casting to `*const ()` or `*mut ()` just bloats the MIR, so let's not.

If ACP#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')
0 files changed, 0 insertions, 0 deletions