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 6 pull requests #111019

Closed
wants to merge 15 commits into from
Closed

Commits on Apr 23, 2023

  1. Make some tests unit.

    cjgillot committed Apr 23, 2023
    Configuration menu
    Copy the full SHA
    baa1312 View commit details
    Browse the repository at this point in the history

Commits on Apr 27, 2023

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

Commits on Apr 28, 2023

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

Commits on Apr 29, 2023

  1. fix rustdoc and core test

    fee1-dead committed Apr 29, 2023
    Configuration menu
    Copy the full SHA
    e928067 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    475378f View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    489925f View commit details
    Browse the repository at this point in the history
  4. cfg-gate BoxFromSlice trait

    Co-authored-by: David Tolnay <dtolnay@gmail.com>
    Jules-Bertholet and dtolnay authored Apr 29, 2023
    Configuration menu
    Copy the full SHA
    18d2c60 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    a4f391d View commit details
    Browse the repository at this point in the history
  6. rustdoc: catch and don't blow up on impl Trait cycles

    An odd feature of Rust is that `Foo` is invalid, but `Bar` is okay:
    
        type Foo<'a, 'b> = Box<dyn PartialEq<Foo<'a, 'b>>>;
        type Bar<'a, 'b> = impl PartialEq<Bar<'a, 'b>>;
    
    To get it right, track every time rustdoc descends into a type alias,
    so if it shows up twice, it can be write the path instead of
    infinitely expanding it.
    notriddle committed Apr 29, 2023
    Configuration menu
    Copy the full SHA
    b1d0827 View commit details
    Browse the repository at this point in the history

Commits on Apr 30, 2023

  1. Rollup merge of rust-lang#103406 - Jules-Bertholet:from_clone_slice_t…

    …o_box, r=dtolnay
    
    Loosen `From<&[T]> for Box<[T]>` bound to `T: Clone`
    
    Also loosens `From<Cow<'_, [T]>> for Box<[T]>`'s bound.
    
    [Discussion on Zulip](https://rust-lang.zulipchat.com/#narrow/stream/219381-t-libs/topic/From.3C.26.5BT.5D.3E.20impls.20consistency)
    Dylan-DPC authored Apr 30, 2023
    Configuration menu
    Copy the full SHA
    9653fcf View commit details
    Browse the repository at this point in the history
  2. Rollup merge of rust-lang#110631 - notriddle:notriddle/impl-trait-cyc…

    …le, r=GuillaumeGomez
    
    rustdoc: catch and don't blow up on impl Trait cycles
    
    Fixes rust-lang#110629
    
    An odd feature of Rust is that `Foo` is invalid, but `Bar` is okay:
    
        type Foo<'a, 'b> = Box<dyn PartialEq<Foo<'a, 'b>>>;
        type Bar<'a, 'b> = impl PartialEq<Bar<'a, 'b>>;
    
    To get it right, track every time rustdoc descends into a type alias, so if it shows up twice, it can be write the path instead of infinitely expanding it.
    Dylan-DPC authored Apr 30, 2023
    Configuration menu
    Copy the full SHA
    ff53476 View commit details
    Browse the repository at this point in the history
  3. Rollup merge of rust-lang#110732 - cjgillot:unit-const-prop, r=tmiasko

    Make ConstProp some tests unit.
    
    Part of the effort to tidy up mir-opt test suite.
    Dylan-DPC authored Apr 30, 2023
    Configuration menu
    Copy the full SHA
    1a8e704 View commit details
    Browse the repository at this point in the history
  4. Rollup merge of rust-lang#110955 - fee1-dead-contrib:sus-operation, r…

    …=compiler-errors
    
    uplift `clippy::clone_double_ref` as `suspicious_double_ref_op`
    
    Split from rust-lang#109842.
    
    r? `@compiler-errors`
    Dylan-DPC authored Apr 30, 2023
    Configuration menu
    Copy the full SHA
    ed0a87f View commit details
    Browse the repository at this point in the history
  5. Rollup merge of rust-lang#110996 - loongarch-rs:fix-bootstrap, r=ozka…

    …nonur
    
    bootstrap: Fix compile error: unused-mut
    
    Compile errors:
    
    ```
       Compiling bootstrap v0.0.0 (/home/hev/rust/rust/src/bootstrap)
    error: variable does not need to be mutable
        --> config.rs:1312:17
         |
    1312 |             let mut build_target = config
         |                 ----^^^^^^^^^^^^
         |                 |
         |                 help: remove this `mut`
         |
         = note: `-D unused-mut` implied by `-D warnings`
    
    error: could not compile `bootstrap` (lib) due to previous error
    ```
    Dylan-DPC authored Apr 30, 2023
    Configuration menu
    Copy the full SHA
    da7231a View commit details
    Browse the repository at this point in the history
  6. Rollup merge of rust-lang#111000 - JohnBobbo96:core_option_unneeded_f…

    …unction, r=jyn514
    
    Remove unneeded function call in `core::option`.
    
    r? ``@jyn514``
    Dylan-DPC authored Apr 30, 2023
    Configuration menu
    Copy the full SHA
    71a5abe View commit details
    Browse the repository at this point in the history