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 #133423

Open
wants to merge 14 commits into
base: master
Choose a base branch
from
Open

Commits on Nov 18, 2024

  1. std: allow after-main use of synchronization primitives

    By creating an unnamed thread handle when the actual one has already been destroyed, synchronization primitives using thread parking can be used even outside the Rust runtime.
    
    This also fixes an inefficiency in the queue-based `RwLock`: if `thread::current` was not initialized yet, it will create a new handle on every parking attempt without initializing `thread::current`. The private `current_or_unnamed` function introduced here fixes this.
    joboet committed Nov 18, 2024
    Configuration menu
    Copy the full SHA
    5a856b8 View commit details
    Browse the repository at this point in the history

Commits on Nov 21, 2024

  1. Mention that std::fs::remove_dir_all fails on files

    This is explicitly mentioned for std::fs::remove_file's documentation,
    but not in the aforementioned function.
    
    It is more likely for a slightly lazy programmer to believe that
    removing a file would work and that they do not have to distinguish
    between directories (with contents) and files themself, because of the
    function's recursive nature and how it distinguishes between files and
    directories when removing them.
    n0toose committed Nov 21, 2024
    Configuration menu
    Copy the full SHA
    197bba5 View commit details
    Browse the repository at this point in the history

Commits on Nov 23, 2024

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

Commits on Nov 24, 2024

  1. Configuration menu
    Copy the full SHA
    04d1bdc View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    3a23669 View commit details
    Browse the repository at this point in the history
  3. Remove forces_embed_bitcode

    DianQK committed Nov 24, 2024
    Configuration menu
    Copy the full SHA
    7cc5fee View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    b9a0e57 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    3440505 View commit details
    Browse the repository at this point in the history
  6. Rollup merge of rust-lang#132730 - joboet:after_main_sync, r=Noratrieb

    std: allow after-main use of synchronization primitives
    
    By creating an unnamed thread handle when the actual one has already been destroyed, synchronization primitives using thread parking can be used even outside the Rust runtime.
    
    This also fixes an inefficiency in the queue-based `RwLock`: if `thread::current` was not initialized yet, it will create a new handle on every parking attempt without initializing `thread::current`. The private `current_or_unnamed` function introduced here fixes this.
    jieyouxu authored Nov 24, 2024
    Configuration menu
    Copy the full SHA
    31b4023 View commit details
    Browse the repository at this point in the history
  7. Rollup merge of rust-lang#133105 - bvanjoi:issue-132743, r=petrochenkov

    only store valid proc macro item for doc link
    
    Fixes rust-lang#132743
    
    The definition item can be detected if it is exported in the doc, so store these items rather than skipping.
    
    r? `@petrochenkov`
    jieyouxu authored Nov 24, 2024
    Configuration menu
    Copy the full SHA
    6b07382 View commit details
    Browse the repository at this point in the history
  8. Rollup merge of rust-lang#133260 - compiler-errors:deref, r=fee1-dead

    Constify the `Deref`/`DerefMut` traits, too
    
    One more constification. Rebased on that one commit that makes it so we don't need to provide stability on const impls.
    
    r? fee1-dead
    jieyouxu authored Nov 24, 2024
    Configuration menu
    Copy the full SHA
    6bf9a23 View commit details
    Browse the repository at this point in the history
  9. Rollup merge of rust-lang#133297 - DianQK:embed-bitcode-ios, r=nikic

    Remove legacy bitcode for iOS
    
    Follow rust-lang#117364.
    jieyouxu authored Nov 24, 2024
    Configuration menu
    Copy the full SHA
    8d20d71 View commit details
    Browse the repository at this point in the history
  10. Rollup merge of rust-lang#133298 - n0toose:remove-dir-all-but-not-pat…

    …hs, r=Noratrieb
    
    Mention that std::fs::remove_dir_all fails on files
    
    This is explicitly mentioned for std::fs::remove_file.
    
    It is more likely for a slightly lazy programmer to believe that removing a file would work and that they do not have to distinguish between directories (with contents) and files themself, because of the function's recursive nature and how it distinguishes between files and directories when removing them.
    
    Follow-up for rust-lang#133183.
    jieyouxu authored Nov 24, 2024
    Configuration menu
    Copy the full SHA
    1741b39 View commit details
    Browse the repository at this point in the history
  11. Rollup merge of rust-lang#133384 - RalfJung:vector-abi-check-tests, r…

    …=jieyouxu
    
    add a test for target-feature-ABI warnings in closures and when calling extern fn
    
    Also update the comment regarding the inheritance of target features into closures, to make it more clear that we really shouldn't do this right now.
    jieyouxu authored Nov 24, 2024
    Configuration menu
    Copy the full SHA
    c50e19b View commit details
    Browse the repository at this point in the history