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 9 pull requests #122113

Merged
merged 22 commits into from
Mar 7, 2024
Merged

Rollup of 9 pull requests #122113

merged 22 commits into from
Mar 7, 2024

Commits on Mar 4, 2024

  1. Allow bootstrap cache path to be set by environment variable

    This allows the bootstrap cache path to be set by the
    `RUSTC_BOOTSTRAP_CACHE` environment variable.
    
    Setting the bootstrap cache path to an external location can help to
    speed up builds in cases where the build directory is not kept between
    builds, e.g. in CI or other automated build systems.
    jefferyto authored and lu-zero committed Mar 4, 2024
    Configuration menu
    Copy the full SHA
    d911613 View commit details
    Browse the repository at this point in the history

Commits on Mar 5, 2024

  1. Add a build option to specify the bootstrap cache

    Setting the bootstrap cache path to an external location can help to
    speed up builds in cases where the build directory is not kept between
    builds, e.g. in CI or other automated build systems.
    lu-zero committed Mar 5, 2024
    Configuration menu
    Copy the full SHA
    c98e25b View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    39887d3 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    ebc45c8 View commit details
    Browse the repository at this point in the history

Commits on Mar 6, 2024

  1. Clarify how lowering if produces then/else blocks

    This makes it easier to see that the call to `in_scope` returns both the then
    block and the else block. The rather confusing `unpack!` step is confined to
    its own separate line.
    
    (This patch reindents several lines, so using "ignore whitespace" is
    recommended in order to focus on the actual changes.)
    Zalathar committed Mar 6, 2024
    Configuration menu
    Copy the full SHA
    7396fd1 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    3402f39 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    250e697 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    e81df3f View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    533add8 View commit details
    Browse the repository at this point in the history
  6. remove outdated fixme comment

    The `TraitPredicate` no longer has constness as we have desugared it to work with the type system through const generics instead.
    fee1-dead committed Mar 6, 2024
    Configuration menu
    Copy the full SHA
    1061c8d View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    5a4ff27 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    9957736 View commit details
    Browse the repository at this point in the history
  9. Update src/bootstrap/src/utils/change_tracker.rs

    Co-authored-by: Onur Özkan <onurozkan.dev@outlook.com>
    lu-zero and onur-ozkan authored Mar 6, 2024
    Configuration menu
    Copy the full SHA
    0a80f9a View commit details
    Browse the repository at this point in the history
  10. Rollup merge of rust-lang#121958 - chenyukang:yukang-fix-121915-impor…

    …t, r=petrochenkov
    
    Fix redundant import errors for preload extern crate
    
    Fixes rust-lang#121915
    matthiaskrgr authored Mar 6, 2024
    Configuration menu
    Copy the full SHA
    550b8a2 View commit details
    Browse the repository at this point in the history
  11. Rollup merge of rust-lang#121976 - lu-zero:bootstrap-cache, r=onur-ozkan

    Add an option to have an external download/bootstrap cache
    
    Follow up from rust-lang#116697 to address rust-lang#116697 (review)
    matthiaskrgr authored Mar 6, 2024
    Configuration menu
    Copy the full SHA
    24a2169 View commit details
    Browse the repository at this point in the history
  12. Rollup merge of rust-lang#122022 - heiher:loongarch-features, r=petro…

    …chenkov
    
    loongarch: add frecipe and relax target feature
    
    This PR adds `frecipe` and `relax` target features to LoongArch:
    
    * frecipe - Support frecipe.{s/d} and frsqrte.{s/d} instructions..
    * relax - Enable Linker relaxation.
    matthiaskrgr authored Mar 6, 2024
    Configuration menu
    Copy the full SHA
    daf89d0 View commit details
    Browse the repository at this point in the history
  13. Rollup merge of rust-lang#122026 - clubby789:fmt-removed, r=onur-ozkan

    Do not try to format removed files
    
    If you removed a file, `x fmt` would confusingly print
    ```
    formatting modified file path/to/file.rs
    ```
    and pass it to the formatting logic. Filter out files with `D` (removed) status
    matthiaskrgr authored Mar 6, 2024
    Configuration menu
    Copy the full SHA
    03ec79b View commit details
    Browse the repository at this point in the history
  14. Rollup merge of rust-lang#122027 - compiler-errors:rpitit-cycle, r=sp…

    …astorino
    
    Uplift some feeding out of `associated_type_for_impl_trait_in_impl` and into queries
    
    This PR moves the `type_of` and `generics_of` query feeding out of `associated_type_for_impl_trait_in_impl`, since eagerly feeding results in query cycles due to a subtle interaction with `resolve_bound_vars`.
    
    Fixes rust-lang#122019
    
    r? spastorino
    matthiaskrgr authored Mar 6, 2024
    Configuration menu
    Copy the full SHA
    34cffae View commit details
    Browse the repository at this point in the history
  15. Rollup merge of rust-lang#122063 - Zalathar:lower-if, r=oli-obk

    Make the lowering of `thir::ExprKind::If` easier to follow
    
    This targets a few code patterns that I found very confusing when I first tried to understand what this code is doing.
    
    No functional changes. I recommend looking at the changes individually, with whitespace hidden.
    matthiaskrgr authored Mar 6, 2024
    Configuration menu
    Copy the full SHA
    37782da View commit details
    Browse the repository at this point in the history
  16. Rollup merge of rust-lang#122074 - KonradHoeffner:patch-2, r=jhpratt

    Add missing PartialOrd trait implementation doc for array
    
    Analogously to vectors and slices, this PR documents the lexicographic sorting of PartialOrd as rustdoc comment on the trait implementation of PartialOrd for arrays.
    Associated issue: rust-lang#122073.
    matthiaskrgr authored Mar 6, 2024
    Configuration menu
    Copy the full SHA
    6279ef2 View commit details
    Browse the repository at this point in the history
  17. Rollup merge of rust-lang#122082 - fee1-dead-contrib:rm-outdated-note…

    …, r=compiler-errors
    
    remove outdated fixme comment
    
    The `TraitPredicate` no longer has constness as we have desugared it to work with the type system through const generics instead.
    matthiaskrgr authored Mar 6, 2024
    Configuration menu
    Copy the full SHA
    75ebe83 View commit details
    Browse the repository at this point in the history
  18. Rollup merge of rust-lang#122091 - ChrisDenton:comment, r=RalfJung

    Note why we're using a new thread in `test_get_os_named_thread`
    
    ``@RalfJung`` expressed some "surprise and confusion" about why we're spawning a new thread in this test. Hopefully this comment will help future readers.
    matthiaskrgr authored Mar 6, 2024
    Configuration menu
    Copy the full SHA
    3827584 View commit details
    Browse the repository at this point in the history