Use target instead of machine for mir interpreter integer handling.#108047
Hidden character warning
Use target instead of machine for mir interpreter integer handling.#108047bors merged 1 commit intorust-lang:masterfrom
target instead of machine for mir interpreter integer handling.#108047Conversation
|
Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @RalfJung (or someone else) soon. Please see the contribution instructions for more information. |
|
The Miri subtree was changed cc @rust-lang/miri Some changes occurred in src/tools/clippy cc @rust-lang/clippy Some changes occurred to the CTFE / Miri engine cc @rust-lang/miri Some changes occurred to the CTFE / Miri engine cc @rust-lang/miri |
|
So this renames machine_usize → target_usize but leaves other uses of the term "machine" unchanged? LGTM, r=me with CI happy. |
yea. I looked at the other uses, like the trait and modules, but it's not really about the target. The |
Those are about the "Abstract Machine" and I think the name still makes sense. |
|
☔ The latest upstream changes (presumably #108052) made this pull request unmergeable. Please resolve the merge conflicts. |
The naming of `machine` only makes sense from a mir interpreter internals perspective, but outside users talk about the `target` platform
|
@bors r+ |
…iaskrgr Rollup of 10 pull requests Successful merges: - rust-lang#107034 (Migrating rustc_infer to session diagnostics (part 4)) - rust-lang#107972 (Fix unintentional UB in ui tests) - rust-lang#108010 (Make `InferCtxt::can_eq` and `InferCtxt::can_sub` return booleans) - rust-lang#108021 (make x look for x.py if shell script does not exist) - rust-lang#108047 (Use `target` instead of `machine` for mir interpreter integer handling.) - rust-lang#108049 (Don't suggest `#[doc(hidden)]` trait methods with matching return type) - rust-lang#108066 (Better names for illegal impl trait positions) - rust-lang#108076 (rustdoc: Use more let chain) - rust-lang#108088 (clarify correctness of `black_box`) - rust-lang#108094 (Demonstrate I/O in File examples) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
Use `target` instead of `machine` for mir interpreter integer handling. The naming of `machine` only makes sense from a mir interpreter internals perspective, but outside users talk about the `target` platform. As per rust-lang#108029 (comment) r? `@RalfJung`
Upstream PRs that require local changes: - Don't ICE in might_permit_raw_init if reference is polymorphic rust-lang/rust#108012 - Use target instead of machine for mir interpreter integer handling rust-lang/rust#108047 - Optimize mk_region rust-lang/rust#108020 Co-authored-by: Qinheping Hu <qinhh@amazon.com>
The naming of
machineonly makes sense from a mir interpreter internals perspective, but outside users talk about thetargetplatform. As per #108029 (comment)r? @RalfJung