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 10 pull requests #119578

Merged
merged 35 commits into from
Jan 4, 2024
Merged

Rollup of 10 pull requests #119578

merged 35 commits into from
Jan 4, 2024

Commits on Dec 18, 2023

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

Commits on Dec 21, 2023

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

Commits on Dec 26, 2023

  1. Configuration menu
    Copy the full SHA
    ac9368a View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    0f9baa8 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    4bf2794 View commit details
    Browse the repository at this point in the history

Commits on Dec 27, 2023

  1. Configuration menu
    Copy the full SHA
    dae48ea View commit details
    Browse the repository at this point in the history
  2. Support for tempfile crate on UNIX hosts

    Co-authored-by: Jefffrey <22608443+Jefffrey@users.noreply.github.com>
    Co-authored-by: Ralf Jung <post@ralfj.de>
    3 people committed Dec 27, 2023
    Configuration menu
    Copy the full SHA
    cf2ef7d View commit details
    Browse the repository at this point in the history
  3. Auto merge of rust-lang#3240 - Jefffrey:tempfile, r=RalfJung

    Support for tempfile crate on UNIX hosts
    
    Reviving old PR: rust-lang/miri#2720
    
    Attempted to apply the changes as suggested by rust-lang/miri#2720 (comment)
    
    To fix tempfile to work for UNIX targets only and fall back to previous behaviour of only supporting default mode for Windows targets
    bors committed Dec 27, 2023
    Configuration menu
    Copy the full SHA
    0c2c93e View commit details
    Browse the repository at this point in the history

Commits on Dec 28, 2023

  1. Configuration menu
    Copy the full SHA
    86198a1 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    0f98c0e View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    ee42d1e View commit details
    Browse the repository at this point in the history
  4. don't test unspecified case

    RalfJung committed Dec 28, 2023
    Configuration menu
    Copy the full SHA
    771e479 View commit details
    Browse the repository at this point in the history
  5. Auto merge of rust-lang#3244 - RalfJung:nan-nondet, r=RalfJung

    NaN non-determinism for intrinsics and libm functions
    bors committed Dec 28, 2023
    Configuration menu
    Copy the full SHA
    a63fd5e View commit details
    Browse the repository at this point in the history
  6. add test for rust-lang#117626

    bvanjoi committed Dec 28, 2023
    Configuration menu
    Copy the full SHA
    437f07b View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    7e3f5f8 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    4da47a4 View commit details
    Browse the repository at this point in the history
  9. Auto merge of rust-lang#3246 - saethlin:mmap-ices, r=RalfJung

    Fix integer overflow ICEs from round_up_to_next_multiple_of
    
    Turns out the standard library _does_ have the function we need. So I swapped us to using the checked version in mmap/munmap where we can return an error, and we're still using the ICEy version in SIMD.
    
    I found one of the ICE cases by running this test: https://github.com/wbcchsyn/rust-mmap-allocator/blob/765bcaab6e3bfd1cb1e6eaac80ac7e821fb5979b/src/mmap_allocator.rs#L195-L210
    bors committed Dec 28, 2023
    Configuration menu
    Copy the full SHA
    8bec0a5 View commit details
    Browse the repository at this point in the history

Commits on Dec 29, 2023

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

Commits on Dec 30, 2023

  1. Auto merge of rust-lang#3239 - beepster4096:windows_sys_tests, r=Ralf…

    …Jung
    
    Use `windows-sys` in windows tests
    
    This PR adds `windows-sys` to `test_dependencies` so that we don't have to write out windows api bindings for each test.
    bors committed Dec 30, 2023
    Configuration menu
    Copy the full SHA
    38847ae View commit details
    Browse the repository at this point in the history

Commits on Dec 31, 2023

  1. Remove libtest's dylib

    saethlin committed Dec 31, 2023
    Configuration menu
    Copy the full SHA
    c0fa85e View commit details
    Browse the repository at this point in the history

Commits on Jan 2, 2024

  1. Configuration menu
    Copy the full SHA
    09bb07e View commit details
    Browse the repository at this point in the history
  2. Update after rebase

    GKFX committed Jan 2, 2024
    Configuration menu
    Copy the full SHA
    f0c0a49 View commit details
    Browse the repository at this point in the history

Commits on Jan 3, 2024

  1. Configuration menu
    Copy the full SHA
    ee41651 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    862368d View commit details
    Browse the repository at this point in the history

Commits on Jan 4, 2024

  1. Configuration menu
    Copy the full SHA
    5aa15b6 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    5c47d77 View commit details
    Browse the repository at this point in the history
  3. Rollup merge of rust-lang#118704 - esp-rs:rv32-tier-2, r=davidtwco

    Promote `riscv32{im|imafc}` targets to tier 2
    
    Pending the approval of [the MCP](rust-lang/compiler-team#701).
    matthiaskrgr committed Jan 4, 2024
    Configuration menu
    Copy the full SHA
    08c822f View commit details
    Browse the repository at this point in the history
  4. Rollup merge of rust-lang#119184 - Rajveer100:branch-for-issue-118752…

    …, r=davidtwco
    
    Switch from using `//~ERROR` annotations with `--error-format` to `error-pattern`
    
    Fixes rust-lang#118752
    
    As noticed by ```@jyn514``` while working on a patch, tests failed due to `//~ERROR` annotations used in combination with the older `--error-format` which is now `error-pattern`.
    matthiaskrgr committed Jan 4, 2024
    Configuration menu
    Copy the full SHA
    9fa0c8e View commit details
    Browse the repository at this point in the history
  5. Rollup merge of rust-lang#119325 - RalfJung:custom-mir, r=compiler-er…

    …rors
    
    custom mir: make it clear what the return block is
    
    Custom MIR recently got support for specifying the "unwind action", so now there's two things coming after the actual call part of `Call` terminators. That's not very self-explaining so I propose we change the syntax to imitate keyword arguments:
    ```
    Call(popped = Vec::pop(v), ReturnTo(drop), UnwindContinue())
    ```
    
    Also fix some outdated docs and add some docs to `Call` and `Drop`.
    matthiaskrgr committed Jan 4, 2024
    Configuration menu
    Copy the full SHA
    a919d97 View commit details
    Browse the repository at this point in the history
  6. Rollup merge of rust-lang#119391 - DaniPopes:catch-flatten, r=davidtwco

    Use Result::flatten in catch_with_exit_code
    matthiaskrgr committed Jan 4, 2024
    Configuration menu
    Copy the full SHA
    3d8d10d View commit details
    Browse the repository at this point in the history
  7. Rollup merge of rust-lang#119431 - taiki-e:asm-s390x-reg-addr, r=Amanieu

    Support reg_addr register class in s390x inline assembly
    
    In s390x, `r0` cannot be used as an address register (it is evaluated as zero in an address context).
    
    Therefore, currently, in assemblies involving memory accesses, `r0` must be [marked as clobbered](https://github.com/taiki-e/atomic-maybe-uninit/blob/1a1155653a26667396c805954ab61c8cbb14de8c/src/arch/s390x.rs#L58) or [explicitly used to a non-address](https://github.com/taiki-e/atomic-maybe-uninit/blob/1a1155653a26667396c805954ab61c8cbb14de8c/src/arch/s390x.rs#L135) or explicitly use an address register to prevent `r0` from being allocated to a register for the address.
    
    This patch adds a register class for allocating general-purpose registers, except `r0`, to make it easier to use address registers. (powerpc already has a register class (reg_nonzero) for a similar purpose.)
    
    This is identical to the `a` constraint in LLVM and GCC:
    
    https://llvm.org/docs/LangRef.html#supported-constraint-code-list
    > a: A 32, 64, or 128-bit integer address register (excludes R0, which in an address context evaluates as zero).
    
    https://gcc.gnu.org/onlinedocs/gcc/Machine-Constraints.html
    > a
    > Address register (general purpose register except r0)
    
    cc ``@uweigand``
    
    r? ``@Amanieu``
    matthiaskrgr committed Jan 4, 2024
    Configuration menu
    Copy the full SHA
    12c102e View commit details
    Browse the repository at this point in the history
  8. Rollup merge of rust-lang#119475 - saethlin:remove-libtest-dylib, r=c…

    …uviper
    
    Remove libtest's dylib
    
    libtest.so is only used by rustdoc, and tests seem to pass locally with this change. I suppose if this is broken, the only way to find out is to make a PR.
    matthiaskrgr committed Jan 4, 2024
    Configuration menu
    Copy the full SHA
    99a8c33 View commit details
    Browse the repository at this point in the history
  9. Rollup merge of rust-lang#119532 - GKFX:offset-of-parse-expr, r=est31

    Make offset_of field parsing use metavariable which handles any spacing
    
    As discussed at and around comments rust-lang#106655 (comment) and rust-lang#106655 (comment), the current arguments to offset_of do not accept all the whitespace combinations: `0. 1.1.1` and `0.1.1. 1` are currently treated specially in `tests/ui/offset-of/offset-of-tuple-nested.rs`.
    
    They also do not allow [forwarding individual fields as in](https://play.rust-lang.org/?version=nightly&mode=debug&edition=2021&gist=444cdf0ec02b99e8fd5fd8d8ecb312ca)
    ```rust
    macro_rules! off {
        ($a:expr) => {
            offset_of!(m::S, 0. $a)
        }
    }
    ```
    
    This PR replaces the macro arguments with `($Container:ty, $($fields:expr)+ $(,)?)` which does allow any arrangement of whitespace that I could come up with and the forwarding of fields example above.
    
    This also allows for array indexing in the future, which I think is the last future extension to the syntax suggested in the offset_of RFC.
    
    Tracking issue for offset_of: rust-lang#106655
    ``@rustbot`` label F-offset_of
    
    ``@est31``
    matthiaskrgr committed Jan 4, 2024
    Configuration menu
    Copy the full SHA
    e306cfb View commit details
    Browse the repository at this point in the history
  10. Rollup merge of rust-lang#119553 - bvanjoi:fix-119463, r=petrochenkov

    stop feed vis when cant access for trait item
    
    Fixes rust-lang#119463
    
    It's not necessary to feed visibility when use a private trait.
    
    r? ``@petrochenkov``
    matthiaskrgr committed Jan 4, 2024
    Configuration menu
    Copy the full SHA
    ee882d6 View commit details
    Browse the repository at this point in the history
  11. Rollup merge of rust-lang#119574 - RalfJung:miri, r=oli-obk

    Miri subtree update
    
    r? `@ghost`
    matthiaskrgr committed Jan 4, 2024
    Configuration menu
    Copy the full SHA
    6579378 View commit details
    Browse the repository at this point in the history