rust/compiler/rustc_const_eval/src
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
..
check_consts Instance::resolve -> Instance::try_resolve, and other nits 2024-07-02 17:28:03 -04:00
const_eval Fix spans 2024-07-02 15:48:48 -04:00
interpret Rollup merge of #127275 - RalfJung:offset-from-isize-min, r=Amanieu 2024-07-06 13:26:25 +02:00
util rename CompileTimeInterpreter -> CompileTimeMachine, CompileTimeEvalContext -> CompileTimeInterpCx 2024-06-13 20:30:11 +02:00
errors.rs don't ICE when encountering an extern type field during validation 2024-06-22 17:39:01 +02:00
lib.rs use is_none_or in some places in the compiler 2024-06-12 16:20:07 +02:00