Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rollup of 7 pull requests #126817

Merged
merged 17 commits into from
Jun 22, 2024
Merged

Rollup of 7 pull requests #126817

merged 17 commits into from
Jun 22, 2024

Commits on Jun 19, 2024

  1. Configuration menu
    Copy the full SHA
    75ee1d7 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    f22b5af View commit details
    Browse the repository at this point in the history

Commits on Jun 20, 2024

  1. Configuration menu
    Copy the full SHA
    3c0a4bc View commit details
    Browse the repository at this point in the history

Commits on Jun 21, 2024

  1. Configuration menu
    Copy the full SHA
    225796a View commit details
    Browse the repository at this point in the history
  2. add as_ptr to trait AllocBytes, fix 2 impls; add pub fn get_bytes_unc…

    …hecked_raw in allocation.rs; add pub fn get_alloc_bytes_unchecked_raw[_mut] in memory.rs
    Strophox committed Jun 21, 2024
    Configuration menu
    Copy the full SHA
    b512bf6 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    771e44e View commit details
    Browse the repository at this point in the history
  4. [fuchsia-test-runner] Remove usage of kw_only

    We are still at Python 3.8 in Fuchsia infra. This was introduced at
    Python 3.10.
    miguelfrde committed Jun 21, 2024
    Configuration menu
    Copy the full SHA
    d94a405 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    5d5892e View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    ea681ef View commit details
    Browse the repository at this point in the history
  7. Fix remaining cases

    compiler-errors committed Jun 21, 2024
    Configuration menu
    Copy the full SHA
    ffd72b1 View commit details
    Browse the repository at this point in the history

Commits on Jun 22, 2024

  1. Rollup merge of rust-lang#126530 - beetrees:f16-inline-asm-riscv, r=A…

    …manieu
    
    Add `f16` inline ASM support for RISC-V
    
    This PR adds `f16` inline ASM support for RISC-V. A `FIXME` is left for `f128` support as LLVM does not support the required `Q` (Quad-Precision Floating-Point) extension yet.
    
    Relevant issue: rust-lang#125398
    Tracking issue: rust-lang#116909
    
    `@rustbot` label +F-f16_and_f128
    workingjubilee authored Jun 22, 2024
    Configuration menu
    Copy the full SHA
    e7956cd View commit details
    Browse the repository at this point in the history
  2. Rollup merge of rust-lang#126712 - Oneirical:bootest-constestllation,…

    … r=jieyouxu
    
    Migrate `relocation-model`, `error-writing-dependencies` and `crate-name-priority` `run-make` tests to rmake
    
    Part of rust-lang#121876 and the associated [Google Summer of Code project](https://blog.rust-lang.org/2024/05/01/gsoc-2024-selected-projects.html).
    
    Needs MSVC try-job due to rust-lang#28026, almost guaranteed to fail, but let's see anyways.
    
    try-job: aarch64-gnu
    `/* try-job: x86_64-msvc */`
    try-job: x86_64-apple-1
    try-job: armhf-gnu
    try-job: test-various
    workingjubilee authored Jun 22, 2024
    Configuration menu
    Copy the full SHA
    84b0922 View commit details
    Browse the repository at this point in the history
  3. Rollup merge of rust-lang#126722 - adwinwhite:ptr_fn_abi, r=celinval

    Add method to get `FnAbi` of function pointer
    
    Provide a StableMIR API to query `FnAbi` of a function pointer.
    
    Fixes [rust-lang/project-stable-mir#63](rust-lang/project-stable-mir#63)
    workingjubilee authored Jun 22, 2024
    Configuration menu
    Copy the full SHA
    1f9793f View commit details
    Browse the repository at this point in the history
  4. Rollup merge of rust-lang#126787 - Strophox:get-bytes, r=RalfJung

    Add direct accessors for memory addresses in `Machine` (for Miri)
    
    The purpose of this PR is to enable direct (immutable) access to memory addresses in `Machine`, which will be needed for further extension of Miri.
    
    This is done by adding (/completing missings pairs of) accessor functions, with the relevant signatures as follows:
    ```rust
    /* rust/compiler/rustc_middle/src/mir/interpret/allocation.rs */
    
    pub trait AllocBytes {
      // ..
    
      fn as_ptr(&self) -> *const u8;
    /*fn as_mut_ptr(&mut self) -> *mut u8; -- Already in the compiler*/
    }
    
    impl<Prov: Provenance, Extra, Bytes: AllocBytes> Allocation<Prov, Extra, Bytes> {
      // ..
    
      pub fn get_bytes_unchecked_raw(&self) -> *const u8;
    /*pub fn get_bytes_unchecked_raw_mut(&mut self) -> *mut u8; -- Already in the compiler*/
    }
    ```
    ```rust
    /* rust/compiler/rustc_const_eval/src/interpret/memory.rs */
    
    impl<'tcx, M: Machine<'tcx>> InterpCx<'tcx, M> {
      // ..
    
      pub fn get_alloc_bytes_unchecked_raw(&self, id: AllocId) -> InterpResult<'tcx, *const u8>;
      pub fn get_alloc_bytes_unchecked_raw_mut(&mut self, id: AllocId) -> InterpResult<'tcx, *mut u8>;
    }
    ```
    
    r? ``@RalfJung``
    workingjubilee authored Jun 22, 2024
    Configuration menu
    Copy the full SHA
    9498d5c View commit details
    Browse the repository at this point in the history
  5. Rollup merge of rust-lang#126798 - miguelfrde:master, r=tmandry

    [fuchsia-test-runner] Remove usage of kw_only
    
    We are still at Python 3.8 in Fuchsia infra. This was introduced at Python 3.10.
    
    r? tmandry
    r? erickt
    workingjubilee authored Jun 22, 2024
    Configuration menu
    Copy the full SHA
    b9ab6c3 View commit details
    Browse the repository at this point in the history
  6. Rollup merge of rust-lang#126809 - estebank:wording-tweak, r=oli-obk

    Remove stray `.` from error message
    workingjubilee authored Jun 22, 2024
    Configuration menu
    Copy the full SHA
    539090e View commit details
    Browse the repository at this point in the history
  7. Rollup merge of rust-lang#126811 - compiler-errors:tidy-ftl, r=estebank

    Add a tidy rule to check that fluent messages and attrs don't end in `.`
    
    This adds a new dependency on `fluent-parse` to `tidy` -- we already rely on it in rustc so I feel like it's not that big of a deal.
    
    This PR also adjusts many error messages that currently end in `.`; not all of them since I added an `ALLOWLIST`, excluded `rustc_codegen_*` ftl files, and `.teach_note` attributes.
    
    r? ``@estebank`` ``@oli-obk``
    workingjubilee authored Jun 22, 2024
    Configuration menu
    Copy the full SHA
    1916b3d View commit details
    Browse the repository at this point in the history