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 4 pull requests #124879

Merged
merged 13 commits into from
May 8, 2024
Merged

Rollup of 4 pull requests #124879

merged 13 commits into from
May 8, 2024

Commits on Apr 28, 2024

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

Commits on May 6, 2024

  1. Configuration menu
    Copy the full SHA
    ab066ae View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    c64889c View commit details
    Browse the repository at this point in the history
  3. Apply suggestions from code review

    Co-authored-by: Jubilee <46493976+workingjubilee@users.noreply.github.com>
    anatawa12 and workingjubilee authored May 6, 2024
    Configuration menu
    Copy the full SHA
    81f5175 View commit details
    Browse the repository at this point in the history
  4. iOS/tvOS/watchOS/visionOS: Set the main thread name

    Tested in the iOS simulator that the thread name is not set by default,
    and that setting it improves the debugging experience in lldb / Xcode.
    madsmtm committed May 6, 2024
    Configuration menu
    Copy the full SHA
    aa606bb View commit details
    Browse the repository at this point in the history
  5. iOS/tvOS/watchOS: Fix alloc w. large alignment on older versions

    Tested on an old MacBook and the iOS simulator.
    madsmtm committed May 6, 2024
    Configuration menu
    Copy the full SHA
    53bd38b View commit details
    Browse the repository at this point in the history
  6. iOS/tvOS/watchOS/visionOS: Fix reading large files

    Tested in the iOS simulator with something like:
    ```
    let mut buf = vec![0; c_int::MAX as usize - 1 + 2];
    let read_bytes = f.read(&mut buf).unwrap();
    ```
    madsmtm committed May 6, 2024
    Configuration menu
    Copy the full SHA
    28622c9 View commit details
    Browse the repository at this point in the history
  7. iOS/tvOS/watchOS/visionOS: Improve File Debug impl

    This uses `libc::fcntl`, which, while not explicitly marked as available
    in the headers, is already used by `File::sync_all` and `File::sync_data`
    on these platforms, so should be fine to use here as well.
    madsmtm committed May 6, 2024
    Configuration menu
    Copy the full SHA
    ff41c99 View commit details
    Browse the repository at this point in the history

Commits on May 7, 2024

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

Commits on May 8, 2024

  1. Rollup merge of rust-lang#124470 - devnexen:no_sigpipe_fbsd, r=workin…

    …gjubilee
    
    std::net: Socket::new_raw now set to SO_NOSIGPIPE on freebsd.
    workingjubilee authored May 8, 2024
    Configuration menu
    Copy the full SHA
    bc42f25 View commit details
    Browse the repository at this point in the history
  2. Rollup merge of rust-lang#124782 - anatawa12:docs-create-new-already-…

    …exists, r=workingjubilee
    
    add note about `AlreadyExists` to `create_new`
    
    Fixes rust-lang#119244
    workingjubilee authored May 8, 2024
    Configuration menu
    Copy the full SHA
    40926fd View commit details
    Browse the repository at this point in the history
  3. Rollup merge of rust-lang#124788 - madsmtm:reduce-target_os-macos, r=…

    …workingjubilee
    
    Convert instances of `target_os = "macos"` to `target_vendor = "apple"`
    
    rust-lang#124491 migrated towards using `target_vendor = "apple"` more, as there's very little difference between iOS, tvOS, watchOS and visionOS. In that PR, I only did the changes where the standard library already had fixes for iOS, that I could confidently apply to the other targets.
    
    However, there's actually also not that big of a gap between macOS and the aforementioned platforms - so in this PR, I've gone through a few of the instances of `target_os = "macos"` and replaced it with `target_vendor = "apple"` to improve support on those platforms, see the commits for details.
    
    r? workingjubilee
    
    CC `@thomcc` `@simlay` (do tell me if I should stop pinging you on these Apple PRs)
    
    `@rustbot` label O-apple
    workingjubilee authored May 8, 2024
    Configuration menu
    Copy the full SHA
    037c62a View commit details
    Browse the repository at this point in the history
  4. Rollup merge of rust-lang#124838 - RalfJung:next_power_of_two, r=scot…

    …tmcm
    
    next_power_of_two: add a doctest to show what happens on 0
    workingjubilee authored May 8, 2024
    Configuration menu
    Copy the full SHA
    ceb5ec3 View commit details
    Browse the repository at this point in the history