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

Closed
wants to merge 23 commits into from

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
    0f9baa8 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    4bf2794 View commit details
    Browse the repository at this point in the history

Commits on Dec 28, 2023

  1. 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
  2. Configuration menu
    Copy the full SHA
    7e3f5f8 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
  3. Configuration menu
    Copy the full SHA
    1490bba View commit details
    Browse the repository at this point in the history
  4. add a new optimized_compiler_builtins option

    in particular, this makes the `c` feature for compiler-builtins an explicit opt-in, rather than silently detected by whether `llvm-project` is checked out on disk.
    exposing this is necessary because the `cc` crate doesn't support cross-compiling to MSVC, and we want people to be able to run `x check --target foo` regardless of whether they have a c toolchain available.
    
    this also uses the new option in CI, where we *do* want to optimize compiler_builtins.
    
    the new option is off by default for the `dev` channel and on otherwise.
    jyn514 authored and onur-ozkan committed Jan 3, 2024
    Configuration menu
    Copy the full SHA
    b5ccbcb View commit details
    Browse the repository at this point in the history

Commits on Jan 4, 2024

  1. Configuration menu
    Copy the full SHA
    b05273b View commit details
    Browse the repository at this point in the history
  2. 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 authored Jan 4, 2024
    Configuration menu
    Copy the full SHA
    b5fa86e View commit details
    Browse the repository at this point in the history
  3. 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 authored Jan 4, 2024
    Configuration menu
    Copy the full SHA
    2def6c7 View commit details
    Browse the repository at this point in the history
  4. 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 authored Jan 4, 2024
    Configuration menu
    Copy the full SHA
    659b981 View commit details
    Browse the repository at this point in the history
  5. Rollup merge of rust-lang#119391 - DaniPopes:catch-flatten, r=davidtwco

    Use Result::flatten in catch_with_exit_code
    matthiaskrgr authored Jan 4, 2024
    Configuration menu
    Copy the full SHA
    b705437 View commit details
    Browse the repository at this point in the history
  6. 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 authored Jan 4, 2024
    Configuration menu
    Copy the full SHA
    52bcc68 View commit details
    Browse the repository at this point in the history
  7. 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 authored Jan 4, 2024
    Configuration menu
    Copy the full SHA
    6129278 View commit details
    Browse the repository at this point in the history
  8. 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 authored Jan 4, 2024
    Configuration menu
    Copy the full SHA
    94b03af View commit details
    Browse the repository at this point in the history
  9. 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 authored Jan 4, 2024
    Configuration menu
    Copy the full SHA
    edb2a1c View commit details
    Browse the repository at this point in the history
  10. Rollup merge of rust-lang#119556 - onur-ozkan:optimized-compiler-buil…

    …tins, r=onur-ozkan
    
    Reland optimized-compiler-builtins config
    
    Copy of rust-lang#102579 PR.
    
    From rust-lang#102579:
    
    > No concerns on my side. Currently, Jyn isn't actively working on the project. I will close this PR; open another one to cherry-pick the commits, resolve conflicts, and then r+ it.
    
    > Fixes rust-lang#102560. Fixes rust-lang#101172. Helps with rust-lang#105065 (although there's some weirdness there - it's still broken when optimized-compiler-builtins is set to true).
    
    Fixes rust-lang#102560. Fixes rust-lang#101172. Helps with rust-lang#105065
    
    r? ghost
    matthiaskrgr authored Jan 4, 2024
    Configuration menu
    Copy the full SHA
    b889dd5 View commit details
    Browse the repository at this point in the history