rust/library/core
Matthias Krüger 2137d19ef6
Rollup merge of #127275 - RalfJung:offset-from-isize-min, r=Amanieu
offset_from, offset: clearly separate safety requirements the user needs to prove from corollaries that automatically follow

By landing https://github.com/rust-lang/rust/pull/116675 we decided that objects larger than `isize::MAX` cannot exist in the address space of a Rust program, which lets us simplify these rules.

For `offset_from`, we can even state that the *absolute* distance fits into an `isize`, and therefore exclude `isize::MIN`. This PR also changes Miri to treat an `isize::MIN` difference like the other isize-overflowing cases.
2024-07-06 13:26:25 +02:00
..
benches Write `char::DebugEscape` sequences using `write_str` 2024-05-20 10:04:44 +02:00
src Rollup merge of #127275 - RalfJung:offset-from-isize-min, r=Amanieu 2024-07-06 13:26:25 +02:00
tests Stabilize `duration_abs_diff` 2024-06-29 21:03:12 +02:00
Cargo.toml Cleanup bootstrap check-cfg 2024-06-27 11:30:03 +02:00