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 6 pull requests #130357

Merged
merged 23 commits into from
Sep 14, 2024
Merged

Rollup of 6 pull requests #130357

merged 23 commits into from
Sep 14, 2024

Commits on Sep 10, 2024

  1. coverage: Extract executor::block_on from several async coverage tests

    By moving `block_on` to an auxiliary crate, we avoid having to keep a separate
    copy of it in every async test.
    
    (This also incorporates some small tweaks to the headers in `await_ready.rs`.)
    Zalathar committed Sep 10, 2024
    Configuration menu
    Copy the full SHA
    e96b4e4 View commit details
    Browse the repository at this point in the history

Commits on Sep 12, 2024

  1. Configuration menu
    Copy the full SHA
    d0be42d View commit details
    Browse the repository at this point in the history
  2. Stabilize entry_insert

    passcod committed Sep 12, 2024
    Configuration menu
    Copy the full SHA
    0b2235d View commit details
    Browse the repository at this point in the history

Commits on Sep 13, 2024

  1. Configuration menu
    Copy the full SHA
    c1121f8 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    5138399 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    0b59bba View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    65863c5 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    7b613ed View commit details
    Browse the repository at this point in the history
  6. Remove unnecessary lifetime from RunCompiler.

    This does change the external interface, but not in a way that will
    cause any breakage because external users don't mention the lifetimes.
    nnethercote committed Sep 13, 2024
    Configuration menu
    Copy the full SHA
    072bf48 View commit details
    Browse the repository at this point in the history
  7. Rename some lifetimes.

    Giving them more typical names.
    nnethercote committed Sep 13, 2024
    Configuration menu
    Copy the full SHA
    606b9cb View commit details
    Browse the repository at this point in the history
  8. Rename and reorder lots of lifetimes.

    - Replace non-standard names like 's, 'p, 'rg, 'ck, 'parent, 'this, and
      'me with vanilla 'a. These are cases where the original name isn't
      really any more informative than 'a.
    - Replace names like 'cx, 'mir, and 'body with vanilla 'a when the lifetime
      applies to multiple fields and so the original lifetime name isn't
      really accurate.
    - Put 'tcx last in lifetime lists, and 'a before 'b.
    nnethercote committed Sep 13, 2024
    Configuration menu
    Copy the full SHA
    8d32578 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    359b658 View commit details
    Browse the repository at this point in the history

Commits on Sep 14, 2024

  1. docs: Enable required feature for 'closure_returning_async_block' lint

    Failing to do this results in the lint example output complaining
    about the lint not existing instead of the thing the lint is supposed
    to be complaining about.
    Fayti1703 committed Sep 14, 2024
    Configuration menu
    Copy the full SHA
    14285e9 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    003da02 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    3d20c81 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    4cb5849 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    60ee1b7 View commit details
    Browse the repository at this point in the history
  6. Rollup merge of rust-lang#130017 - Zalathar:executor, r=Mark-Simulacrum

    coverage: Extract `executor::block_on` from several async coverage tests
    
    By moving `block_on` to an auxiliary crate, we avoid having to keep a separate copy of it in every async test.
    fmease committed Sep 14, 2024
    Configuration menu
    Copy the full SHA
    2b12b57 View commit details
    Browse the repository at this point in the history
  7. Rollup merge of rust-lang#130268 - RalfJung:simd-shuffle-idx-vector, …

    …r=compiler-errors
    
    simd_shuffle: require index argument to be a vector
    
    Remove some codegen hacks by forcing the SIMD shuffle `index` argument to be a vector, which means (thanks to rust-lang#128537) that it will automatically be passed as an immediate in LLVM. The only special-casing we still have is for the extra sanity-checks we add that ensure that the indices are all in-bounds. (And the GCC backend needs to do a bunch of work since the Rust intrinsic is modeled after what LLVM expects, which seems to be quite different from what GCC expects.)
    
    Fixes rust-lang#128738, see that issue for more context.
    fmease committed Sep 14, 2024
    Configuration menu
    Copy the full SHA
    a9dcd7f View commit details
    Browse the repository at this point in the history
  8. Rollup merge of rust-lang#130290 - passcod:stabilise-entry-insert, r=…

    …ChrisDenton
    
    Stabilize entry_insert
    
    This stabilises `HashMap::Entry::insert_entry`, following the FCP in tracking issue rust-lang#65225.
    
    This was implemented in rust-lang#64656 five years ago.
    fmease committed Sep 14, 2024
    Configuration menu
    Copy the full SHA
    f873367 View commit details
    Browse the repository at this point in the history
  9. Rollup merge of rust-lang#130294 - nnethercote:more-lifetimes, r=lcnr

    Lifetime cleanups
    
    The last commit is very opinionated, let's see how we go.
    
    r? `@oli-obk`
    fmease committed Sep 14, 2024
    Configuration menu
    Copy the full SHA
    03e8b6b View commit details
    Browse the repository at this point in the history
  10. Rollup merge of rust-lang#130343 - Fayti1703:patch-correct-async-bloc…

    …k-lint-doc, r=compiler-errors
    
    docs: Enable required feature for 'closure_returning_async_block' lint
    
    Failing to do this results in the lint example output complaining about the lint not existing instead of the thing the lint is supposed to be complaining about.
    
    See <https://doc.rust-lang.org/rustc/lints/listing/allowed-by-default.html#closure-returning-async-block>:
    ![image](https://github.com/user-attachments/assets/78bae16f-3fb6-4d6d-b8aa-768b477cd187)
    fmease committed Sep 14, 2024
    Configuration menu
    Copy the full SHA
    d1701a5 View commit details
    Browse the repository at this point in the history
  11. Rollup merge of rust-lang#130349 - ShE3py:break_up_float, r=fmease

    Fix `Parser::break_up_float`'s right span
    
    ```rs
    use std::mem::offset_of;
    
    fn main() {
        offset_of!((u8,), 0.0);
    }
    ```
    Before:
    ```
    error[E0609]: no field `0` on type `u8`
        --> ./main.rs:4:25
         |
    4    |       offset_of!((u8,), 0.0);
         |  _____--------------------^-
         | |     |
         | |     in this macro invocation
    5    | | }
    ...    |
         |
         = note: this error originates in the macro `offset_of` (in Nightly builds, run with -Z macro-backtrace for more info)
    
    error: aborting due to 1 previous error
    ```
    After:
    ```
    error[E0609]: no field `0` on type `u8`
     --> ./main.rs:4:25
      |
    4 |     offset_of!((u8,), 0.0);
      |                         ^
    
    error: aborting due to 1 previous error
    ```
    
    ---
    `@rustbot` label +A-parser +D-imprecise-spans
    fmease committed Sep 14, 2024
    Configuration menu
    Copy the full SHA
    2b40fdb View commit details
    Browse the repository at this point in the history