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

Merged
merged 33 commits into from
Oct 30, 2023
Merged

Rollup of 8 pull requests #117387

merged 33 commits into from
Oct 30, 2023

Commits on Oct 12, 2023

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

Commits on Oct 24, 2023

  1. Configuration menu
    Copy the full SHA
    a302610 View commit details
    Browse the repository at this point in the history
  2. Merge branch 'sync_from_rust'

    bjorn3 committed Oct 24, 2023
    Configuration menu
    Copy the full SHA
    6d30a7d View commit details
    Browse the repository at this point in the history

Commits on Oct 25, 2023

  1. Configuration menu
    Copy the full SHA
    2c1dbed View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    6aead74 View commit details
    Browse the repository at this point in the history

Commits on Oct 27, 2023

  1. Allows #[diagnostic::on_unimplemented] attributes to have multiple

    notes
    
    This commit extends the `#[diagnostic::on_unimplemented]` (and
    `#[rustc_on_unimplemented]`) attributes to allow multiple `note`
    options. This enables emitting multiple notes for custom error messages.
    For now I've opted to not change any of the existing usages of
    `#[rustc_on_unimplemented]` and just updated the relevant compile tests.
    weiznich committed Oct 27, 2023
    Configuration menu
    Copy the full SHA
    160b179 View commit details
    Browse the repository at this point in the history
  2. Update Cranelift to 0.101.2 and disable host-arch feature of cranelif…

    …t-codegen
    
    This ensures that cg_clif can be built for targets that aren't natively
    supported by Cranelift. It will not be possible to compile for the host
    in this case, but cross-compilation will still be possible.
    
    We won't distribute cg_clif as rustup component for any targets that
    aren't natively supported by Cranelift, but will still build it if
    codegen-backends lists "cranelift".
    bjorn3 committed Oct 27, 2023
    Configuration menu
    Copy the full SHA
    1e39bbf View commit details
    Browse the repository at this point in the history
  3. Update target-lexicon to 0.12.12

    This adds support for loongarch and a bunch of other targets
    bjorn3 committed Oct 27, 2023
    Configuration menu
    Copy the full SHA
    1cb7bdb View commit details
    Browse the repository at this point in the history

Commits on Oct 28, 2023

  1. Auto merge of rust-lang#116609 - eduardosm:bump-stdarch, r=workingjub…

    …ilee
    
    Bump stdarch submodule and remove special handling for LLVM intrinsics that are no longer needed
    
    Bumps stdarch to pull rust-lang/stdarch#1477, which reimplemented some functions with portable SIMD intrinsics instead of arch specific LLVM intrinsics.
    
    Handling of those LLVM intrinsics is removed from cranelift codegen and miri.
    
    cc `@RalfJung` `@bjorn3`
    bors committed Oct 28, 2023
    Configuration menu
    Copy the full SHA
    9e20870 View commit details
    Browse the repository at this point in the history
  2. Auto merge of rust-lang#81746 - bjorn3:cg_clif_rustup_component, r=Ma…

    …rk-Simulacrum
    
    Distribute cg_clif as rustup component on the nightly channel
    
    This makes it possible to use cg_clif using:
    
    ```bash
    $ rustup component add rustc-codegen-cranelift-preview --toolchain nightly
    $ RUSTFLAGS="-Zcodegen-backend=cranelift" cargo +nightly build
    ```
    
    cc rust-lang/compiler-team#405.
    r? `@Mark-Simulacrum`
    bors committed Oct 28, 2023
    Configuration menu
    Copy the full SHA
    da1ed4d View commit details
    Browse the repository at this point in the history

Commits on Oct 29, 2023

  1. Use the LLVM rustc backend as external assembler

    The LLVM backend is generally available, while the gnu assembler is not
    on Windows and many other platforms by default.
    bjorn3 committed Oct 29, 2023
    Configuration menu
    Copy the full SHA
    827a6d8 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    b1e7051 View commit details
    Browse the repository at this point in the history
  3. Stabilize inline asm usage on all platforms

    But exclude sym operands for now as they are somewhat broken.
    bjorn3 committed Oct 29, 2023
    Configuration menu
    Copy the full SHA
    35453ac View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    69c6aa5 View commit details
    Browse the repository at this point in the history
  5. Merge pull request rust-lang#1403 from rust-lang/use_llvm_backend_as_…

    …assembler
    
    Support and stabilize inline asm on all platforms
    bjorn3 authored Oct 29, 2023
    Configuration menu
    Copy the full SHA
    9436eae View commit details
    Browse the repository at this point in the history
  6. Sync from rust e5cfc55

    bjorn3 committed Oct 29, 2023
    Configuration menu
    Copy the full SHA
    e281e6f View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    dde5880 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    a9b21bb View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    c561325 View commit details
    Browse the repository at this point in the history

Commits on Oct 30, 2023

  1. Configuration menu
    Copy the full SHA
    6d69eb1 View commit details
    Browse the repository at this point in the history
  2. coverage: Inline the "recursive" worker methods for assigning counters

    Now that we don't manually pass around indent levels, there's no need for these
    worker methods to exist separately from their main callers.
    Zalathar committed Oct 30, 2023
    Configuration menu
    Copy the full SHA
    2f1be08 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    10c4734 View commit details
    Browse the repository at this point in the history
  4. Use ImageDataType for allocation type

    Signed-off-by: Ayush Singh <ayushdevel1325@gmail.com>
    Ayush1325 committed Oct 30, 2023
    Configuration menu
    Copy the full SHA
    441068b View commit details
    Browse the repository at this point in the history
  5. Fail typeck for illegal break-with-value

    This is fixes the issue wherein typeck was succeeding for break-with-value
    at illegal locations such as inside `while`, `while let` and `for` loops which
    eventually caused an ICE during MIR interpetation for const eval.
    
    Now we fail typeck for such code which prevents faulty MIR from being generated
    and interpreted, thus fixing the ICE.
    gurry committed Oct 30, 2023
    Configuration menu
    Copy the full SHA
    0c8bdd0 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    3f7e506 View commit details
    Browse the repository at this point in the history
  7. Rollup merge of rust-lang#117147 - DaniPopes:pphir-fn-variadic, r=com…

    …piler-errors
    
    Print variadic argument pattern in HIR pretty printer
    
    Variadic argument name/pattern was ignored during HIR pretty printing.
    Could not figure out why it only works on normal functions (`va2`) and not in foreign ones (`va1`).
    fmease authored Oct 30, 2023
    Configuration menu
    Copy the full SHA
    2915707 View commit details
    Browse the repository at this point in the history
  8. Rollup merge of rust-lang#117177 - Ayush1325:uefi-alloc-type, r=worki…

    …ngjubilee
    
    Use ImageDataType for allocation type
    
    Suggested at rust-lang#100499
    
    cc `@dvdhrm`
    cc `@nicholasbishop`
    fmease authored Oct 30, 2023
    Configuration menu
    Copy the full SHA
    098bb37 View commit details
    Browse the repository at this point in the history
  9. Rollup merge of rust-lang#117205 - weiznich:multiple_notes_for_on_uni…

    …mplemented, r=compiler-errors
    
    Allows `#[diagnostic::on_unimplemented]` attributes to have multiple
    
    notes
    
    This commit extends the `#[diagnostic::on_unimplemented]` (and `#[rustc_on_unimplemented]`) attributes to allow multiple `note` options. This enables emitting multiple notes for custom error messages. For now I've opted to not change any of the existing usages of `#[rustc_on_unimplemented]` and just updated the relevant compile tests.
    
    r? `@compiler-errors`
    
    I'm happy to adjust any of the existing changed location to emit the old error message if that's desired.
    fmease authored Oct 30, 2023
    Configuration menu
    Copy the full SHA
    5eb76fa View commit details
    Browse the repository at this point in the history
  10. Rollup merge of rust-lang#117350 - Zalathar:counters-indent, r=oli-obk

    coverage: Replace manual debug indents with nested tracing spans in `counters`
    
    Instead of indenting these debug messages manually, we can get `#[instrument]` to do a better job of it for us, giving us some nice little simplifications.
    fmease authored Oct 30, 2023
    Configuration menu
    Copy the full SHA
    9a8d800 View commit details
    Browse the repository at this point in the history
  11. Rollup merge of rust-lang#117365 - bjorn3:sync_cg_clif-2023-10-29, r=…

    …oli-obk
    
    Stabilize inline asm usage with rustc_codegen_cranelift
    
    Previously using inline asm with the cg_clif version built as part of rustc would return an error that inline asm support is unstable. Recently I implemented everything that remained for full support of inline asm with the exception of sym operands (which remain marked as unstable for cg_clif). As such I think it is time to declare the inline asm support of cg_clif stable.
    
    `@rustbot` label +A-codegen +A-cranelift +T-compiler
    fmease authored Oct 30, 2023
    Configuration menu
    Copy the full SHA
    fd5ffab View commit details
    Browse the repository at this point in the history
  12. Rollup merge of rust-lang#117371 - compiler-errors:unique-params, r=o…

    …li-obk
    
    Ignore RPIT duplicated lifetimes in `opaque_types_defined_by`
    
    An RPIT's or TAIT's own generics are kinda useless -- so just ignore them. For TAITs, they will always be empty, and for RPITs, they're always duplicated lifetimes.
    
    Fixes rust-lang#115013.
    fmease authored Oct 30, 2023
    Configuration menu
    Copy the full SHA
    12eb539 View commit details
    Browse the repository at this point in the history
  13. Rollup merge of rust-lang#117382 - gurry:114529-ice-const-eval, r=oli…

    …-obk
    
    Fail typeck for illegal break-with-value
    
    This is fixes the issue wherein typeck was succeeding for break-with-value exprs at illegal locations such as inside `while`, `while let` and `for` loops which eventually caused an ICE during MIR interpretation for const eval.
    
    Now we fail typeck for such code which prevents faulty MIR from being generated and interpreted, thus fixing the ICE.
    
    Fixes rust-lang#114529
    fmease authored Oct 30, 2023
    Configuration menu
    Copy the full SHA
    4f4b38c View commit details
    Browse the repository at this point in the history
  14. Rollup merge of rust-lang#117385 - RalfJung:deduce_param_attrs, r=oli…

    …-obk
    
    deduce_param_attrs: explain a read-only case
    
    This takes the discussion [here](https://github.com/rust-lang/rust/pull/111517/files#r1243443625) and adds it as comment in the code.
    
    Cc `@lukas-code`
    fmease authored Oct 30, 2023
    Configuration menu
    Copy the full SHA
    288ab16 View commit details
    Browse the repository at this point in the history