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 7 pull requests #110585

Merged
merged 15 commits into from
Apr 20, 2023
Merged

Rollup of 7 pull requests #110585

merged 15 commits into from
Apr 20, 2023

Commits on Apr 17, 2023

  1. Spelling misc

    * environment
    * nonexistent
    * potential
    * prefixes
    * stabilization
    * suffixes
    * use
    
    Signed-off-by: Josh Soref <[email protected]>
    jsoref committed Apr 17, 2023
    Configuration menu
    Copy the full SHA
    0100678 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    f540548 View commit details
    Browse the repository at this point in the history

Commits on Apr 19, 2023

  1. bootstrap: Update linux-raw-sys to 0.3.2

    Adds support for LoongArch.
    heiher committed Apr 19, 2023
    Configuration menu
    Copy the full SHA
    47d7662 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    f17c805 View commit details
    Browse the repository at this point in the history
  3. fmt fix

    kpreid committed Apr 19, 2023
    Configuration menu
    Copy the full SHA
    883606f View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    f79df7d View commit details
    Browse the repository at this point in the history

Commits on Apr 20, 2023

  1. Configuration menu
    Copy the full SHA
    8cad917 View commit details
    Browse the repository at this point in the history
  2. Implement Neg for signed non-zero integers.

    Negating a non-zero integer currently requires unpacking to a
    primitive and re-wrapping. Since negation of non-zero signed
    integers always produces a non-zero result, it is safe to
    implement `Neg` for `NonZeroI{N}`.
    
    The new `impl` is marked as stable because trait implementations
    for two stable types can't be marked unstable.
    jmillikin committed Apr 20, 2023
    Configuration menu
    Copy the full SHA
    4e2797d View commit details
    Browse the repository at this point in the history
  3. Rollup merge of rust-lang#102341 - jmillikin:nonzero-impl-neg, r=dtolnay

    Implement `Neg` for signed non-zero integers.
    
    Negating a non-zero integer currently requires unpacking to a primitive and re-wrapping. Since negation of non-zero signed integers always produces a non-zero result, it is safe to implement `Neg` for `NonZeroI{N}`.
    
    The new `impl` is marked as stable because trait impls for two stable types can't be marked unstable.
    
    See discussion on rust-lang/libs-team#105 for additional context.
    JohnTitor authored Apr 20, 2023
    Configuration menu
    Copy the full SHA
    df3aca2 View commit details
    Browse the repository at this point in the history
  4. Rollup merge of rust-lang#110424 - jsoref:spelling-misc, r=Mark-Simul…

    …acrum
    
    Spelling misc
    
    These two files seem to be fairly distinct from everything else.
    
    That said, if this project doesn't like changing changelogs, I'm happy to drop the changes to `RELEASES.md`
    JohnTitor authored Apr 20, 2023
    Configuration menu
    Copy the full SHA
    41a2fb2 View commit details
    Browse the repository at this point in the history
  5. Rollup merge of rust-lang#110448 - ripytide:master, r=cuviper

    cmp doc examples improvements
    
    Most changes are for stylistic consistency, with some changes to provide more clarity.
    JohnTitor authored Apr 20, 2023
    Configuration menu
    Copy the full SHA
    9dbd25c View commit details
    Browse the repository at this point in the history
  6. Rollup merge of rust-lang#110516 - loongarch-rs:update-bootstrap-linu…

    …x-raw-sys, r=Mark-Simulacrum
    
    bootstrap: Update linux-raw-sys to 0.3.2
    
    Adds support for LoongArch.
    JohnTitor authored Apr 20, 2023
    Configuration menu
    Copy the full SHA
    f71e78e View commit details
    Browse the repository at this point in the history
  7. Rollup merge of rust-lang#110548 - kpreid:span, r=WaffleLapkin

    Make `impl Debug for Span` not panic on not having session globals.
    
    I hit the panic that this patch avoids while messing with the early lints in `rustc_session::config::build_session_options()`. The rest of that project is not finished, but this seemed like a self-contained improvement.
    
    (Should changes like this add tests? I don't see similar unit tests.)
    JohnTitor authored Apr 20, 2023
    Configuration menu
    Copy the full SHA
    615669d View commit details
    Browse the repository at this point in the history
  8. Rollup merge of rust-lang#110554 - WaffleLapkin:rustc_data_structures…

    …_unsafe_op_in_unsafe_fn, r=Nilstrieb
    
    `deny(unsafe_op_in_unsafe_fn)` in `rustc_data_structures`
    
    r? `@Nilstrieb`
    
    I couldn't bring myself to document the safety in big `unsafe` functions but ehh
    JohnTitor authored Apr 20, 2023
    Configuration menu
    Copy the full SHA
    a496ae6 View commit details
    Browse the repository at this point in the history
  9. Rollup merge of rust-lang#110575 - Ezrashaw:fix-regression-110573, r=…

    …compiler-errors
    
    fix lint regression in `non_upper_case_globals`
    
    Fixes rust-lang#110573
    
    The issue also exists for inherent associated types (where I copied my impl from). `EarlyContext` is more involved to fix in this way, so I'll leave it be for now (note it's unstable so that's not urgent).
    
    r? `@compiler-errors`
    JohnTitor authored Apr 20, 2023
    Configuration menu
    Copy the full SHA
    a2826dc View commit details
    Browse the repository at this point in the history