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 8 pull requests #121565

Closed
wants to merge 18 commits into from

Commits on Feb 19, 2024

  1. Add test cases for inlining compiler-private items

    Closes rust-lang#106421
    
    This was already fixed by
    f5d43a0, but now the test cases are
    added.
    notriddle committed Feb 19, 2024
    Configuration menu
    Copy the full SHA
    b9f0094 View commit details
    Browse the repository at this point in the history

Commits on Feb 20, 2024

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

Commits on Feb 21, 2024

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

Commits on Feb 22, 2024

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

Commits on Feb 23, 2024

  1. Fix incorrect doc of ScopedJoinHandle::is_finished

    Fixes the explanation how to use is_finished to achieve a non-blocking
    join. The updated version matches the documentation of the non-scoped
    JoinHandle::is_finished.
    wgslr committed Feb 23, 2024
    Configuration menu
    Copy the full SHA
    7234c98 View commit details
    Browse the repository at this point in the history

Commits on Feb 24, 2024

  1. Tweak debug!() call

    Co-authored-by: matthewjasper <[email protected]>
    Nadrieril and matthewjasper authored Feb 24, 2024
    Configuration menu
    Copy the full SHA
    de4efa5 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    f32095c View commit details
    Browse the repository at this point in the history
  3. library: use addr_of!

    GrigorenkoPV committed Feb 24, 2024
    Configuration menu
    Copy the full SHA
    ff187a9 View commit details
    Browse the repository at this point in the history
  4. Forbid use of extern "C-unwind" inside standard library

    Those libraries are build with `-C panic=unwind` and is expected to
    be linkable to `-C panic=abort` library. To ensure unsoundness
    compiler needs to prevent a `C-unwind` call to exist, as doing so may leak
    foreign exceptions into `-C panic=abort`.
    nbdd0121 committed Feb 24, 2024
    Configuration menu
    Copy the full SHA
    f08e2d4 View commit details
    Browse the repository at this point in the history
  5. compiler: use addr_of!

    GrigorenkoPV committed Feb 24, 2024
    Configuration menu
    Copy the full SHA
    613cb32 View commit details
    Browse the repository at this point in the history
  6. Rollup merge of rust-lang#121284 - notriddle:notriddle/issue-106421, …

    …r=Mark-Simulacrum
    
    Add test cases for inlining compiler-private items
    
    Closes rust-lang#106421
    
    This was already fixed by rust-lang#121218, but now the test cases are added.
    matthiaskrgr authored Feb 24, 2024
    Configuration menu
    Copy the full SHA
    a597352 View commit details
    Browse the repository at this point in the history
  7. Rollup merge of rust-lang#121343 - Takashiidobe:takashi/examples-for-…

    …slice, r=Mark-Simulacrum
    
    Add examples for some methods on slices
    
    Adds some examples to some methods on slice.
    
    `is_empty` didn't have an example for an empty slice, even though `str` and the collections all have one, so I added that in.
    
    `first_mut` and `last_mut` didn't have an example for what happens when the slice is empty, whereas `first` and `last` do, so I added that too.
    matthiaskrgr authored Feb 24, 2024
    Configuration menu
    Copy the full SHA
    6b2c470 View commit details
    Browse the repository at this point in the history
  8. Rollup merge of rust-lang#121374 - Nadrieril:factor-explain, r=matthe…

    …wjasper
    
    match lowering: Split off `test_candidates` into several functions and improve comments
    
    The logic of `test_candidates` has three steps: pick a test, sort the candidates, and generate code for everything. So I split it off into three methods.
    
    I also ended up reworking the comments that explain the algorithm. In particular I added detailed examples. I removed the digression about rust-lang#29740 because it's no longer relevant to how the code is structured today.
    
    r? `@matthewjasper`
    matthiaskrgr authored Feb 24, 2024
    Configuration menu
    Copy the full SHA
    3790447 View commit details
    Browse the repository at this point in the history
  9. Rollup merge of rust-lang#121474 - jieyouxu:ignore-directives-migrati…

    …on, r=Mark-Simulacrum
    
    Ignore compiletest test directive migration commits
    
    Not sure if the corresponding bors commit need to be included as well, assuming not.
    matthiaskrgr authored Feb 24, 2024
    Configuration menu
    Copy the full SHA
    89ea3e3 View commit details
    Browse the repository at this point in the history
  10. Rollup merge of rust-lang#121515 - RalfJung:fallible-promotion, r=oli…

    …-obk
    
    promotion: don't promote int::MIN / -1
    
    Looks like I entirely forgot about this case when adding the div-by-zero check, which was supposed to ensure that we never promote operations that can fail...
    Cc rust-lang#80619
    
    This is a breaking change, so needs a crater run.
    r? `@oli-obk`
    matthiaskrgr authored Feb 24, 2024
    Configuration menu
    Copy the full SHA
    1c64e78 View commit details
    Browse the repository at this point in the history
  11. Rollup merge of rust-lang#121530 - wgslr:master, r=Mark-Simulacrum

    Fix incorrect doc of ScopedJoinHandle::is_finished
    
    Fixes the explanation how to use `is_finished` to achieve a non-blocking join. The updated version matches the documentation of the non-scoped JoinHandle::is_finished.
    matthiaskrgr authored Feb 24, 2024
    Configuration menu
    Copy the full SHA
    6e5f0c7 View commit details
    Browse the repository at this point in the history
  12. Rollup merge of rust-lang#121551 - nbdd0121:ffi_unwind, r=RalfJung

    Forbid use of `extern "C-unwind"` inside standard library
    
    Those libraries are build with `-C panic=unwind` and is expected to be linkable to `-C panic=abort` library. To ensure unsoundness compiler needs to prevent a `C-unwind` call to exist, as doing so may leak foreign exceptions into `-C panic=abort`.
    
    r? `@RalfJung`
    matthiaskrgr authored Feb 24, 2024
    Configuration menu
    Copy the full SHA
    1f5b171 View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    0acf061 View commit details
    Browse the repository at this point in the history