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

Merged
merged 38 commits into from
Feb 5, 2024
Merged

Rollup of 8 pull requests #120671

merged 38 commits into from
Feb 5, 2024

Commits on Jul 18, 2023

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

Commits on Aug 29, 2023

  1. Update README.md

    WiktorPrzetacznik authored Aug 29, 2023
    Configuration menu
    Copy the full SHA
    3f1ad47 View commit details
    Browse the repository at this point in the history
  2. Revert "Update README.md"

    This reverts commit 3f1ad47.
    WiktorPrzetacznik committed Aug 29, 2023
    Configuration menu
    Copy the full SHA
    1da87ee View commit details
    Browse the repository at this point in the history

Commits on Dec 26, 2023

  1. Configuration menu
    Copy the full SHA
    a63880c View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    3e389ef View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    baaf6d7 View commit details
    Browse the repository at this point in the history

Commits on Jan 20, 2024

  1. Configuration menu
    Copy the full SHA
    60a0819 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    0cb5e2f View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    232cc2b View commit details
    Browse the repository at this point in the history
  4. feat: add try_waker and From<&mut Context> for ContextBuilder to allo…

    …w the extention of contexts by futures
    tvallotton committed Jan 20, 2024
    Configuration menu
    Copy the full SHA
    403718b View commit details
    Browse the repository at this point in the history
  5. fix: make LocalWake available in targets that don't support atomics b…

    …y removing a #[cfg(target_has_atomic = ptr)]
    tvallotton committed Jan 20, 2024
    Configuration menu
    Copy the full SHA
    2012d4b View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    0cb7a0a View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    f824373 View commit details
    Browse the repository at this point in the history
  8. chore: fix ci failures

    tvallotton committed Jan 20, 2024
    Configuration menu
    Copy the full SHA
    093f80b View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    ad28f75 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    3e373f5 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    a8e71f2 View commit details
    Browse the repository at this point in the history
  12. fix: Apply suggestions from code review

    Co-authored-by: Mark Rousskov <mark.simulacrum@gmail.com>
    tvallotton and Mark-Simulacrum committed Jan 20, 2024
    Configuration menu
    Copy the full SHA
    c67a446 View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    eccb5e7 View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    7c6a9cb View commit details
    Browse the repository at this point in the history
  15. refactor: make waker mandatory.

    This also removes
    * impl From<&Context> for ContextBuilder
    * Context::try_waker()
    
    The from implementation is removed because now that
    wakers are always supported, there are less incentives
    to override the current context. Before, the incentive
    was to add Waker support to a reactor that didn't have
    any.
    tvallotton committed Jan 20, 2024
    Configuration menu
    Copy the full SHA
    038c6e0 View commit details
    Browse the repository at this point in the history
  16. Configuration menu
    Copy the full SHA
    180c68b View commit details
    Browse the repository at this point in the history

Commits on Jan 26, 2024

  1. Configuration menu
    Copy the full SHA
    cda3588 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    1254ee4 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    9f14fc4 View commit details
    Browse the repository at this point in the history
  4. Use <T, U> for array/slice equality impls

    Makes the trait implementation documentation for arrays and slices appear more consistent.
    wackbyte committed Jan 26, 2024
    Configuration menu
    Copy the full SHA
    3f3a153 View commit details
    Browse the repository at this point in the history

Commits on Jan 31, 2024

  1. riscv only supports split_debuginfo=off for now

    Disable packed/unpacked options for riscv linux/android.
    Other riscv targets already only have the off option.
    
    The packed/unpacked options might be supported in the future.
    See upstream issue for more details:
    llvm/llvm-project#56642
    
    Fixes rust-lang#110224
    kxxt committed Jan 31, 2024
    Configuration menu
    Copy the full SHA
    471af8c View commit details
    Browse the repository at this point in the history

Commits on Feb 2, 2024

  1. fix typo

    Co-authored-by: teor <teor@riseup.net>
    RalfJung and teor2345 authored Feb 2, 2024
    Configuration menu
    Copy the full SHA
    61d1ebe View commit details
    Browse the repository at this point in the history

Commits on Feb 5, 2024

  1. Remove unused struct

    mu001999 committed Feb 5, 2024
    Configuration menu
    Copy the full SHA
    8266657 View commit details
    Browse the repository at this point in the history
  2. target: default to the medium code model on LoongArch targets

    The Rust LoongArch targets have been using the default LLVM code model
    so far, which is "small" in LLVM-speak and "normal" in LoongArch-speak.
    As described in the "Code Model" section of LoongArch ELF psABI spec
    v20231219 [1], one can only make function calls as far as ±128MiB with
    the "normal" code model; this is insufficient for very large software
    containing Rust components that needs to be linked into the big text
    section, such as Chromium.
    
    Because:
    
    * we do not want to ask users to recompile std if they are to build
      such software,
    * objects compiled with larger code models can be linked with those
      with smaller code models without problems, and
    * the "medium" code model is comparable to the "small"/"normal" one
      performance-wise (same data access pattern; each function call
      becomes 2-insn long and indirect, but this may be relaxed back into
      the direct 1-insn form in a future LLVM version), but is able to
      perform function calls within ±128GiB,
    
    it is better to just switch the targets to the "medium" code model,
    which is also "medium" in LLVM-speak.
    
    [1]: https://github.com/loongson/la-abi-specs/blob/v2.30/laelf.adoc#code-models
    xen0n committed Feb 5, 2024
    Configuration menu
    Copy the full SHA
    35dad14 View commit details
    Browse the repository at this point in the history
  3. Rollup merge of rust-lang#113833 - WiktorPrzetacznik:master, r=dtolnay

    `std::error::Error` -> Trait Implementations: lifetimes consistency improvement
    
    This cleans up `std::error::Error` trait implementations lifetime inconsistency (`'static` -> `'a`)
    
    **Reasoning:**
    
    Trait implementations for `std::error::Error`, like:
    `impl From<&str> for Box<dyn Error + 'static, Global>`
    `impl<'a> From<&str> for Box<dyn Error + Sync + Send + 'a, Global>`
    use different lifetime annotations misleadingly implying using different life annotations here is a conscious, nonaccidental decision.
    
    [(Related forum discussion here)](https://users.rust-lang.org/t/confusing-std-error-source-code/97011/5?u=wiktor)
    matthiaskrgr authored Feb 5, 2024
    Configuration menu
    Copy the full SHA
    13e84f2 View commit details
    Browse the repository at this point in the history
  4. Rollup merge of rust-lang#115386 - RalfJung:partial-eq-chain, r=dtolnay

    PartialEq, PartialOrd: update and synchronize handling of transitive chains
    
    It was brought up in https://internals.rust-lang.org/t/total-equality-relations-as-std-eq-rhs/19232 that we currently have a gap in our `PartialEq` rules, which this PR aims to close:
    
    > For example, with PartialEq's conditions you may have a = b = c = d ≠ a (where a and c are of type A, b and d are of type B).
    
    The second commit fixes rust-lang#87067 by updating PartialOrd to handle the requirements the same way PartialEq does.
    matthiaskrgr authored Feb 5, 2024
    Configuration menu
    Copy the full SHA
    fd8ea25 View commit details
    Browse the repository at this point in the history
  5. Rollup merge of rust-lang#116284 - RalfJung:no-nan-match, r=cjgillot

    make matching on NaN a hard error, and remove the rest of illegal_floating_point_literal_pattern
    
    These arms would never be hit anyway, so the pattern makes little sense. We have had a future-compat lint against float matches in general for a *long* time, so I hope we can get away with immediately making this a hard error.
    
    This is part of implementing rust-lang/rfcs#3535.
    
    Closes rust-lang#41620 by removing the lint.
    
    rust-lang/reference#1456 updates the reference to match.
    matthiaskrgr authored Feb 5, 2024
    Configuration menu
    Copy the full SHA
    ed27148 View commit details
    Browse the repository at this point in the history
  6. Rollup merge of rust-lang#118960 - tvallotton:local_waker, r=Mark-Sim…

    …ulacrum
    
    Add LocalWaker and ContextBuilder types to core, and LocalWake trait to alloc.
    
    Implementation for  rust-lang#118959.
    matthiaskrgr authored Feb 5, 2024
    Configuration menu
    Copy the full SHA
    80e8c7e View commit details
    Browse the repository at this point in the history
  7. Rollup merge of rust-lang#120384 - wackbyte:array-equality-generics, …

    …r=Mark-Simulacrum
    
    Use `<T, U>` for array/slice equality `impl`s
    
    Makes the trait implementation documentation for arrays and slices appear more consistent.
    
    [Example](https://doc.rust-lang.org/1.75.0/std/primitive.array.html): mixed `A`, `B`, and `U`.
    ![List of PartialEq implementations for arrays](https://github.com/wackbyte/rust/assets/29505620/823c010e-ee57-4de1-885b-a1cd6dcaf85f)
    
    This change makes them all `U`.
    matthiaskrgr authored Feb 5, 2024
    Configuration menu
    Copy the full SHA
    2624bfb View commit details
    Browse the repository at this point in the history
  8. Rollup merge of rust-lang#120518 - kxxt:riscv-split-debug-info, r=com…

    …piler-errors
    
    riscv only supports split_debuginfo=off for now
    
    Disable packed/unpacked options for riscv linux/android. Other riscv targets already only have the off option.
    
    The packed/unpacked options might be supported in the future. See upstream issue for more details:
    llvm/llvm-project#56642
    
    Fixes rust-lang#110224
    matthiaskrgr authored Feb 5, 2024
    Configuration menu
    Copy the full SHA
    540936c View commit details
    Browse the repository at this point in the history
  9. Rollup merge of rust-lang#120657 - mu001999:clean, r=Nilstrieb

    Remove unused struct
    
    Detected by rust-lang#118257
    matthiaskrgr authored Feb 5, 2024
    Configuration menu
    Copy the full SHA
    13ea09b View commit details
    Browse the repository at this point in the history
  10. Rollup merge of rust-lang#120661 - xen0n:loong-medium-cmodel, r=heihe…

    …r,Nilstrieb
    
    target: default to the medium code model on LoongArch targets
    
    The Rust LoongArch targets have been using the default LLVM code model so far, which is "small" in LLVM-speak and "normal" in LoongArch-speak. As [described][1] in the "Code Model" section of LoongArch ELF psABI spec v20231219, one can only make function calls as far as ±128MiB with the "normal" code model; this is insufficient for very large software containing Rust components that needs to be linked into the big text section, such as Chromium.
    
    Because:
    
    * we do not want to ask users to recompile std if they are to build such software,
    * objects compiled with larger code models can be linked with those with smaller code models without problems, and
    * the "medium" code model is comparable to the "small"/"normal" one performance-wise (same data access pattern; each function call becomes 2-insn long and indirect, but this may be relaxed back into the direct 1-insn form in a future LLVM version), but is able to perform function calls within ±128GiB,
    
    it is better to just switch the targets to the "medium" code model, which is also "medium" in LLVM-speak.
    
    [1]: https://github.com/loongson/la-abi-specs/blob/v2.30/laelf.adoc#code-models
    matthiaskrgr authored Feb 5, 2024
    Configuration menu
    Copy the full SHA
    dc0b1f9 View commit details
    Browse the repository at this point in the history