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 13 pull requests #130731

Closed
wants to merge 105 commits into from

Commits on Aug 5, 2024

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

Commits on Aug 8, 2024

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

Commits on Aug 9, 2024

  1. Shrink TyKind::FnPtr.

    By splitting the `FnSig` within `TyKind::FnPtr` into `FnSigTys` and
    `FnHeader`, which can be packed more efficiently. This reduces the size
    of the hot `TyKind` type from 32 bytes to 24 bytes on 64-bit platforms.
    This reduces peak memory usage by a few percent on some benchmarks. It
    also reduces cache misses and page faults similarly, though this doesn't
    translate to clear cycles or wall-time improvements on CI.
    nnethercote committed Aug 9, 2024
    Configuration menu
    Copy the full SHA
    b8b3a93 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    3ea9313 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    0174cb1 View commit details
    Browse the repository at this point in the history
  4. Merge branch 'sync_from_rust'

    bjorn3 committed Aug 9, 2024
    Configuration menu
    Copy the full SHA
    78abc36 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    aec3786 View commit details
    Browse the repository at this point in the history

Commits on Aug 10, 2024

  1. Configuration menu
    Copy the full SHA
    bb6571f View commit details
    Browse the repository at this point in the history
  2. Fixes in various places

    Nadrieril committed Aug 10, 2024
    Configuration menu
    Copy the full SHA
    3de829e View commit details
    Browse the repository at this point in the history
  3. Remove --debug argument of y.sh

    I rarely need a debug build of cg_clif, and even if I actually need one,
    using package overrides in Cargo.toml to only do a debug build for the
    rustc_codegen_cranelift crate works much better.
    bjorn3 committed Aug 10, 2024
    Configuration menu
    Copy the full SHA
    1b96458 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    a33f731 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    e55c630 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    52aa24e View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    aa918f0 View commit details
    Browse the repository at this point in the history
  8. Fix source path for portable-simd

    To avoid overriding the source for coretests every time.
    bjorn3 committed Aug 10, 2024
    Configuration menu
    Copy the full SHA
    ab1da46 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    060811a View commit details
    Browse the repository at this point in the history

Commits on Aug 11, 2024

  1. Sync from rust 730d5d4

    bjorn3 committed Aug 11, 2024
    Configuration menu
    Copy the full SHA
    65369af View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    fabb298 View commit details
    Browse the repository at this point in the history
  3. Fix clean_all.sh

    bjorn3 committed Aug 11, 2024
    Configuration menu
    Copy the full SHA
    918e11d View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    b4e46de View commit details
    Browse the repository at this point in the history

Commits on Aug 12, 2024

  1. Rollup merge of rust-lang#128149 - RalfJung:nontemporal_store, r=jiey…

    …ouxu,Amanieu,Jubilee
    
    nontemporal_store: make sure that the intrinsic is truly just a hint
    
    The `!nontemporal` flag for stores in LLVM *sounds* like it is just a hint, but actually, it is not -- at least on x86, non-temporal stores need very special treatment by the programmer or else the Rust memory model breaks down. LLVM still treats these stores as-if they were normal stores for optimizations, which is [highly dubious](llvm/llvm-project#64521). Let's avoid all that dubiousness by making our own non-temporal stores be truly just a hint, which is possible on some targets (e.g. ARM). On all other targets, non-temporal stores become regular stores.
    
    ~~Blocked on rust-lang/stdarch#1541 propagating to the rustc repo, to make sure the `_mm_stream` intrinsics are unaffected by this change.~~
    
    Fixes rust-lang#114582
    Cc `@Amanieu` `@workingjubilee`
    GuillaumeGomez authored Aug 12, 2024
    Configuration menu
    Copy the full SHA
    ef74616 View commit details
    Browse the repository at this point in the history

Commits on Aug 13, 2024

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

Commits on Aug 14, 2024

  1. Auto merge of rust-lang#128812 - nnethercote:shrink-TyKind-FnPtr, r=c…

    …ompiler-errors
    
    Shrink `TyKind::FnPtr`.
    
    By splitting the `FnSig` within `TyKind::FnPtr` into `FnSigTys` and `FnHeader`, which can be packed more efficiently. This reduces the size of the hot `TyKind` type from 32 bytes to 24 bytes on 64-bit platforms. This reduces peak memory usage by a few percent on some benchmarks. It also reduces cache misses and page faults similarly, though this doesn't translate to clear cycles or wall-time improvements on CI.
    
    r? `@compiler-errors`
    bors committed Aug 14, 2024
    Configuration menu
    Copy the full SHA
    e2acda7 View commit details
    Browse the repository at this point in the history

Commits on Aug 15, 2024

  1. Sync from rust 13a5289

    bjorn3 committed Aug 15, 2024
    Configuration menu
    Copy the full SHA
    c7d43c3 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    69cec6f View commit details
    Browse the repository at this point in the history

Commits on Aug 17, 2024

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

Commits on Aug 18, 2024

  1. stabilize raw_ref_op

    RalfJung committed Aug 18, 2024
    Configuration menu
    Copy the full SHA
    f1fadb8 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    8e7b3b5 View commit details
    Browse the repository at this point in the history

Commits on Aug 19, 2024

  1. Sync from rust 6de928d

    bjorn3 committed Aug 19, 2024
    Configuration menu
    Copy the full SHA
    c1e7b00 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    01f8739 View commit details
    Browse the repository at this point in the history

Commits on Aug 22, 2024

  1. Sync from rust a32d4a0

    bjorn3 committed Aug 22, 2024
    Configuration menu
    Copy the full SHA
    46b7db1 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    87e74fe View commit details
    Browse the repository at this point in the history
  3. Update Cranelift to 0.111

    bjorn3 committed Aug 22, 2024
    Configuration menu
    Copy the full SHA
    19757ec View commit details
    Browse the repository at this point in the history

Commits on Aug 27, 2024

  1. Rollup merge of rust-lang#128731 - RalfJung:simd-shuffle-vector, r=wo…

    …rkingjubilee
    
    simd_shuffle intrinsic: allow argument to be passed as vector
    
    See rust-lang#128738 for context.
    
    I'd like to get rid of [this hack](https://github.com/rust-lang/rust/blob/6c0b89dfac65be9a5be12f938f23098ebc36c635/compiler/rustc_codegen_ssa/src/mir/block.rs#L922-L935). rust-lang#128537 almost lets us do that since constant SIMD vectors will then be passed as immediate arguments. However, simd_shuffle for some reason actually takes an *array* as argument, not a vector, so the hack is still required to ensure that the array becomes an immediate (which then later stages of codegen convert into a vector, as that's what LLVM needs).
    
    This PR prepares simd_shuffle to also support a vector as the `idx` argument. Once this lands, stdarch can hopefully be updated to pass `idx` as a vector, and then support for arrays can be removed, which finally lets us get rid of that hack.
    tgross35 authored Aug 27, 2024
    Configuration menu
    Copy the full SHA
    8a26d21 View commit details
    Browse the repository at this point in the history

Commits on Aug 28, 2024

  1. Sync from rust 1f12b9b

    bjorn3 committed Aug 28, 2024
    Configuration menu
    Copy the full SHA
    217b005 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    36c126f View commit details
    Browse the repository at this point in the history
  3. Fix rustc test suite

    bjorn3 committed Aug 28, 2024
    Configuration menu
    Copy the full SHA
    7e4cafb View commit details
    Browse the repository at this point in the history

Commits on Aug 30, 2024

  1. introduce PrettyPrintMirOptions for cosmetic MIR dump options

    initially starting with `-Z mir-include-spans` because we want them in
    the NLL mir dump pass
    lqd committed Aug 30, 2024
    Configuration menu
    Copy the full SHA
    0fba9b4 View commit details
    Browse the repository at this point in the history

Commits on Sep 3, 2024

  1. Sync from rust bd53aa3

    bjorn3 committed Sep 3, 2024
    Configuration menu
    Copy the full SHA
    c31f7b9 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    39defb1 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    b7ed9ad View commit details
    Browse the repository at this point in the history

Commits on Sep 9, 2024

  1. Auto merge of rust-lang#128939 - bjorn3:windows_cg_clif_component, r=…

    …albertlarsan68
    
    Distribute rustc_codegen_cranelift for Windows
    
    With support for raw-dylib recently added to cg_clif, and inline assembly support working on Windows for quite a while now, all blockers for distributing cg_clif on Windows that I mentioned in rust-lang#81746 (comment) are fixed now.
    bors committed Sep 9, 2024
    Configuration menu
    Copy the full SHA
    cf7c055 View commit details
    Browse the repository at this point in the history

Commits on Sep 10, 2024

  1. Fix the examples in cg_clif

    scottmcm committed Sep 10, 2024
    Configuration menu
    Copy the full SHA
    fe5183e View commit details
    Browse the repository at this point in the history

Commits on Sep 11, 2024

  1. Configuration menu
    Copy the full SHA
    b4d55a8 View commit details
    Browse the repository at this point in the history
  2. Sync from rust 0ee7cb5

    bjorn3 committed Sep 11, 2024
    Configuration menu
    Copy the full SHA
    17bcb2f View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    dcae9ac View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    ade0e38 View commit details
    Browse the repository at this point in the history

Commits on Sep 12, 2024

  1. Inline prepare_stdlib into the sysroot build code

    Also reduce visibility of a couple of statics
    bjorn3 committed Sep 12, 2024
    Configuration menu
    Copy the full SHA
    45be990 View commit details
    Browse the repository at this point in the history
  2. Unconditionally use git to download test repos

    It no longer saves much download time while still complicating the code
    and requiring curl and tar to be installed.
    bjorn3 committed Sep 12, 2024
    Configuration menu
    Copy the full SHA
    1aa0cf9 View commit details
    Browse the repository at this point in the history
  3. Use plain sh for y.sh, test.sh and clean_all.sh

    FreeBSD by default doesn't install bash.
    bjorn3 committed Sep 12, 2024
    Configuration menu
    Copy the full SHA
    4e38767 View commit details
    Browse the repository at this point in the history
  4. Install git-tiny on Cirrus CI

    This avoids pulling in perl.
    bjorn3 committed Sep 12, 2024
    Configuration menu
    Copy the full SHA
    f204181 View commit details
    Browse the repository at this point in the history

Commits on Sep 13, 2024

  1. Configuration menu
    Copy the full SHA
    bc67321 View commit details
    Browse the repository at this point in the history
  2. Misc cleanups

    bjorn3 committed Sep 13, 2024
    Configuration menu
    Copy the full SHA
    d5e2e23 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    652b004 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    41f6d55 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    b7272c2 View commit details
    Browse the repository at this point in the history

Commits on Sep 14, 2024

  1. Configuration menu
    Copy the full SHA
    15848f3 View commit details
    Browse the repository at this point in the history
  2. Rename remove_dir_if_exists to ensure_empty_dir and create the dir in…

    … this function
    
    This avoids removing the directory, which may conflict with sandbox
    systems like Landlock.
    bjorn3 committed Sep 14, 2024
    Configuration menu
    Copy the full SHA
    6fbe4d9 View commit details
    Browse the repository at this point in the history

Commits on Sep 15, 2024

  1. Sync from rust 9b72238

    bjorn3 committed Sep 15, 2024
    Configuration menu
    Copy the full SHA
    ab989ac View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    61d3b59 View commit details
    Browse the repository at this point in the history
  3. Fix rustc test suite

    bjorn3 committed Sep 15, 2024
    Configuration menu
    Copy the full SHA
    c7b4998 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    cebdfe4 View commit details
    Browse the repository at this point in the history
  5. Add test for _mm_cmpestri

    bjorn3 committed Sep 15, 2024
    Configuration menu
    Copy the full SHA
    1e96021 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    16cee89 View commit details
    Browse the repository at this point in the history
  7. Fix rustc test suite

    bjorn3 committed Sep 15, 2024
    Configuration menu
    Copy the full SHA
    eee42f2 View commit details
    Browse the repository at this point in the history
  8. Use unconditional download-ci-llvm in setup_rust_fork.sh

    For whatever reason someone decided to make the default if-changed
    always checkout the llvm-project submodule, which takes a while.
    bjorn3 committed Sep 15, 2024
    Configuration menu
    Copy the full SHA
    5349365 View commit details
    Browse the repository at this point in the history

Commits on Sep 17, 2024

  1. Use associative type defaults in {Layout,FnAbi}OfHelpers.

    This avoids some repetitive boilerplate code.
    nnethercote committed Sep 17, 2024
    Configuration menu
    Copy the full SHA
    37204ee View commit details
    Browse the repository at this point in the history

Commits on Sep 19, 2024

  1. Configuration menu
    Copy the full SHA
    3dcb5a3 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    753271c View commit details
    Browse the repository at this point in the history

Commits on Sep 20, 2024

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

Commits on Sep 21, 2024

  1. Configuration menu
    Copy the full SHA
    460abea View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    019435b View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    f48c5ec View commit details
    Browse the repository at this point in the history

Commits on Sep 22, 2024

  1. Write return value for ptr_mask intrinsic (rust-lang#1536)

    This was forgotten. Without it, ptr_mask just always returns null.
    Noratrieb authored Sep 22, 2024
    Configuration menu
    Copy the full SHA
    f5686e3 View commit details
    Browse the repository at this point in the history
  2. std: implement the random feature

    Implements the ACP rust-lang/libs-team#393.
    joboet committed Sep 22, 2024
    Configuration menu
    Copy the full SHA
    b511592 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    9e9bd9e View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    2dbc190 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    b3af6b6 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    95469dc View commit details
    Browse the repository at this point in the history
  7. update miri test

    joboet committed Sep 22, 2024
    Configuration menu
    Copy the full SHA
    f95e4c9 View commit details
    Browse the repository at this point in the history
  8. Sync from rust 1d68e6d

    bjorn3 committed Sep 22, 2024
    Configuration menu
    Copy the full SHA
    1d53572 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    27b21af View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    3b8089a View commit details
    Browse the repository at this point in the history
  11. Mark 'make_ascii_uppercase' and 'make_ascii_lowercase' in 'u8' as con…

    …st; Rename 'const_char_make_ascii' feature gate to 'const_make_ascii';
    bjoernager committed Sep 22, 2024
    Configuration menu
    Copy the full SHA
    2daf076 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    8f57949 View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    01d19d7 View commit details
    Browse the repository at this point in the history
  14. Fix rustc test suite

    bjorn3 committed Sep 22, 2024
    Configuration menu
    Copy the full SHA
    ab7777f View commit details
    Browse the repository at this point in the history
  15. Configuration menu
    Copy the full SHA
    2273aee View commit details
    Browse the repository at this point in the history
  16. Configuration menu
    Copy the full SHA
    2eba81a View commit details
    Browse the repository at this point in the history
  17. Configuration menu
    Copy the full SHA
    afad3fb View commit details
    Browse the repository at this point in the history
  18. Add test for available_parallelism()

    This is a redo of (this PR)[rust-lang#104095].
    
    Add test for available_parallelism
    
    Add test for available_parallelism
    
    Add test for
    
    Add test for
    Oli Iliffe committed Sep 22, 2024
    Configuration menu
    Copy the full SHA
    e9b0bc9 View commit details
    Browse the repository at this point in the history
  19. Configuration menu
    Copy the full SHA
    ff3a9f4 View commit details
    Browse the repository at this point in the history

Commits on Sep 23, 2024

  1. Rollup merge of rust-lang#129201 - joboet:random_faster_sources, r=jo…

    …shtriplett
    
    std: implement the `random` feature (alternative version)
    
    Implements the ACP rust-lang/libs-team#393.
    
    This PR is an alternative version of rust-lang#129120 that replaces `getentropy` with `CCRandomGenerateBytes` (on macOS) and `arc4random_buf` (other BSDs), since that function is not suited for generating large amounts of data and should only be used to seed other CPRNGs. `CCRandomGenerateBytes`/`arc4random_buf` on the other hand is (on modern platforms) just as secure and uses its own, very strong CPRNG (ChaCha20 on the BSDs, AES on macOS) periodically seeded with `getentropy`.
    workingjubilee authored Sep 23, 2024
    Configuration menu
    Copy the full SHA
    467ed3c View commit details
    Browse the repository at this point in the history
  2. Rollup merge of rust-lang#129550 - kornelski:boxasstr, r=joshtriplett…

    …,dtolnay
    
    Add str.as_str() for easy Deref to string slices
    
    Working with `Box<str>` is cumbersome, because in places like `iter.filter()` it can end up being `&Box<str>` or even `&&Box<str>`, and such type doesn't always get auto-dereferenced as expected.
    
    Dereferencing such box to `&str` requires ugly syntax like `&**boxed_str` or `&***boxed_str`, with the exact amount of `*`s.
    
    `Box<str>` is [not easily comparable with other string types](rust-lang#129852) via `PartialEq`. `Box<str>` won't work for lookups in types like `HashSet<String>`, because `Borrow<String>` won't take types like `&Box<str>`. OTOH `set.contains(s.as_str())` works nicely regardless of levels of indirection.
    
    `String` has a simple solution for this: the `as_str()` method, and `Box<str>` should too.
    workingjubilee authored Sep 23, 2024
    Configuration menu
    Copy the full SHA
    6743ad1 View commit details
    Browse the repository at this point in the history
  3. Rollup merge of rust-lang#130344 - Jaic1:fix-116306, r=BoxyUwU

    Handle unsized consts with type `str`  in v0 symbol mangling
    
    This PR fixes rust-lang#116303 by handling consts with type `str` in v0 symbol mangling as partial support for unsized consts.
    
    This PR is related to `#![feature(adt_const_params)]` (rust-lang#95174) and `#![feature(unsized_const_params)]` (rust-lang#128028).
    
    r? `@BoxyUwU`
    workingjubilee authored Sep 23, 2024
    Configuration menu
    Copy the full SHA
    76afa09 View commit details
    Browse the repository at this point in the history
  4. Rollup merge of rust-lang#130657 - arttet:fix/fuchsia, r=jieyouxu

    Remove x86_64-fuchsia and aarch64-fuchsia target aliases
    
    Closes rust-lang#106649.
    workingjubilee authored Sep 23, 2024
    Configuration menu
    Copy the full SHA
    c51bb32 View commit details
    Browse the repository at this point in the history
  5. Rollup merge of rust-lang#130659 - bjoernager:const-char-encode-utf16…

    …, r=dtolnay
    
    Support `char::encode_utf16` in const scenarios.
    
    Relevant tracking issue: rust-lang#130660
    
    The method `char::encode_utf16` should be marked "const" to allow compile-time conversions.
    
    This PR additionally rewrites the `encode_utf16_raw` function for better readability whilst also reducing the amount of unsafe code.
    
    try-job: x86_64-msvc
    workingjubilee authored Sep 23, 2024
    Configuration menu
    Copy the full SHA
    d29c70b View commit details
    Browse the repository at this point in the history
  6. Rollup merge of rust-lang#130705 - compiler-errors:rtn-complete, r=ja…

    …ckh726
    
    No longer mark RTN as incomplete
    
    The RFC is accepted and the feature is basically fully implemented. This doesn't mean it's necesarily *ready* for stabiliation; there's probably some diagnostic improvements to be made, and as always, users uncover the most creative bugs.
    
    But marking this feature as incomplete no longer serves any purpose, so let's fix that.
    workingjubilee authored Sep 23, 2024
    Configuration menu
    Copy the full SHA
    01a4d75 View commit details
    Browse the repository at this point in the history
  7. Rollup merge of rust-lang#130712 - compiler-errors:const-eval-error-r…

    …eporting, r=BoxyUwU
    
    Don't call `ty::Const::normalize` in error reporting
    
    We do this to ensure that trait refs with unevaluated consts have those consts simplified to their evaluated forms. Instead, use `try_normalize_erasing_regions`.
    
    **NOTE:** This has the side-effect of erasing regions from all of our trait refs. If this is too much to review or you think it's too opinionated of a diagnostics change, then I could split out the effective change (i.e. erasing regions from this impl suggestion) into another PR and have someone else review it.
    workingjubilee authored Sep 23, 2024
    Configuration menu
    Copy the full SHA
    3cb0ee5 View commit details
    Browse the repository at this point in the history
  8. Rollup merge of rust-lang#130713 - bjoernager:const-char-make-ascii, …

    …r=Noratrieb
    
    Mark `u8::make_ascii_uppercase` and `u8::make_ascii_lowercase` as const.
    
    Relevant tracking issue: rust-lang#130698
    
    This PR extends rust-lang#130697 by also marking the `make_ascii_uppercase` and `make_ascii_lowercase` methods in `u8` as const.
    
    The `const_char_make_ascii` feature gate is additionally renamed to `const_make_ascii`.
    workingjubilee authored Sep 23, 2024
    Configuration menu
    Copy the full SHA
    d6481a1 View commit details
    Browse the repository at this point in the history
  9. Rollup merge of rust-lang#130714 - compiler-errors:try-structurally-r…

    …esolve-const, r=BoxyUwU
    
    Introduce `structurally_normalize_const`, use it in `rustc_hir_typeck`
    
    Introduces `structurally_normalize_const` to typecking to separate the "eval a const" step from the "try to turn a valtree into a target usize" in HIR typeck, where we may still have infer vars and stuff around.
    
    I also changed `check_expr_repeat` to move a double evaluation of a const into a single one. I'll leave inline comments.
    
    r? ``@BoxyUwU``
    
    I hesitated to really test this on the new solver where it probably matters for unevaluated consts. If you're worried about the side-effects, I'd be happy to craft some more tests 😄
    workingjubilee authored Sep 23, 2024
    Configuration menu
    Copy the full SHA
    bd4d93f View commit details
    Browse the repository at this point in the history
  10. Rollup merge of rust-lang#130715 - compiler-errors:mir-build-const-ev…

    …al, r=BoxyUwU
    
    Replace calls to `ty::Const::{try_}eval` in mir build/pattern analysis
    
    We normalize consts in writeback: rust-lang#130645. This means that consts are gonna be as normalized as they're ever gonna get in MIR building and pattern analysis. Therefore we can just use `try_to_target_usize` rather than calling `eval_target_usize`.
    
    Regarding the `.expect` calls, I'm not totally certain whether they're correct given rigid unevaluated consts. But this PR shouldn't make *more* ICEs occur; we may have to squash these ICEs when mGCE comes around, tho 😺
    workingjubilee authored Sep 23, 2024
    Configuration menu
    Copy the full SHA
    fc5b4d3 View commit details
    Browse the repository at this point in the history
  11. Rollup merge of rust-lang#130716 - bjorn3:sync_cg_clif-2024-09-22, r=…

    …bjorn3
    
    Subtree sync for rustc_codegen_cranelift
    
    The main highlight this time is a fix for a miscompilation of RwLock on macOS. Also a Cranelift update and a couple of extra vendor intrinsics on arm64.
    
    r? `@ghost`
    
    `@rustbot` label +A-codegen +A-cranelift +T-compiler
    workingjubilee authored Sep 23, 2024
    Configuration menu
    Copy the full SHA
    9546c83 View commit details
    Browse the repository at this point in the history
  12. Rollup merge of rust-lang#130723 - D0liphin:master, r=workingjubilee

    Add test for `available_parallelism()`
    
    This is a redo of [this PR](rust-lang#104095).
    
    I changed the location of the test as per comments in the original thread. Otherwise the test is practically the same.
    
    try-job: test-various
    workingjubilee authored Sep 23, 2024
    Configuration menu
    Copy the full SHA
    7359463 View commit details
    Browse the repository at this point in the history
  13. Rollup merge of rust-lang#130726 - workingjubilee:put-the-spurs-to-th…

    …is-test, r=BoxyUwU
    
    tests: Remove spuriously failing vec-tryinto-array codegen test
    
    This has failed more than a couple of times now. It costs real time, money, and energy to deal with this, far more than this test is saving us.
    workingjubilee authored Sep 23, 2024
    Configuration menu
    Copy the full SHA
    9aa065d View commit details
    Browse the repository at this point in the history