about summary refs log tree commit diff
path: root/tests/codegen/integer-overflow.rs
diff options
context:
space:
mode:
authorLeón Orell Valerian Liehr <me@fmease.dev>2024-05-30 01:12:36 +0200
committerGitHub <noreply@github.com>2024-05-30 01:12:36 +0200
commit849ccc8632894caf71813a9d1f30364b44e2c959 (patch)
treefff199a41e033766c20153ac9352bab68eaa2db0 /tests/codegen/integer-overflow.rs
parentc62fa8294e131accd50ae49d022cfd27fe248d0c (diff)
parent0d63e6b60843a9fb37b51e416b8cea6b146142d4 (diff)
downloadrust-849ccc8632894caf71813a9d1f30364b44e2c959.tar.gz
rust-849ccc8632894caf71813a9d1f30364b44e2c959.zip
Rollup merge of #125701 - scottmcm:generic-from-raw-parts, r=WaffleLapkin
[ACP 362] genericize `ptr::from_raw_parts`

This implements https://github.com/rust-lang/libs-team/issues/362

As such, it can partially undo https://github.com/rust-lang/rust/pull/124795 , letting `slice_from_raw_parts` just call `from_raw_parts` again without re-introducing the unnecessary cast to MIR.

By doing this it also removes a spurious cast from `str::from_raw_parts`.  And I think it does a good job of showing the value of the ACP, since the only thing that needed new turbofishing because of this is inside `ptr::null(_mut)`, but only because `ptr::without_provenance(_mut)` doesn't support pointers to extern types, which it absolutely could (without even changing the implementation).
Diffstat (limited to 'tests/codegen/integer-overflow.rs')
0 files changed, 0 insertions, 0 deletions