diff options
| author | Scott McMurray <scottmcm@users.noreply.github.com> | 2024-05-06 01:44:27 -0700 |
|---|---|---|
| committer | Scott McMurray <scottmcm@users.noreply.github.com> | 2024-05-06 01:53:54 -0700 |
| commit | 61517dbbe6f1f41c935007fcdca5eba8be7477e2 (patch) | |
| tree | bbcadd803f973066e2ce1fc75ce4ab32fed35864 /compiler/rustc_interface/src/errors.rs | |
| parent | d287f3e4eeaf680e8fe875f1ec75cca68f357d30 (diff) | |
| download | rust-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/errors.rs')
0 files changed, 0 insertions, 0 deletions
