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

Merged
merged 21 commits into from
Dec 28, 2022
Merged

Commits on May 2, 2022

  1. Configuration menu
    Copy the full SHA
    321247d View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    204f854 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    a80e685 View commit details
    Browse the repository at this point in the history

Commits on Nov 3, 2022

  1. Remove iter::Empty hack

    Sky committed Nov 3, 2022
    Configuration menu
    Copy the full SHA
    b473bc9 View commit details
    Browse the repository at this point in the history

Commits on Nov 5, 2022

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

Commits on Nov 22, 2022

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

Commits on Dec 9, 2022

  1. Configuration menu
    Copy the full SHA
    5e44a65 View commit details
    Browse the repository at this point in the history
  2. Add tests

    nbdd0121 committed Dec 9, 2022
    Configuration menu
    Copy the full SHA
    b656e24 View commit details
    Browse the repository at this point in the history

Commits on Dec 27, 2022

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

Commits on Dec 28, 2022

  1. Account for match expr in single line

    When encountering `match Some(42) { Some(x) => x, None => "" };`, output
    
    ```
    error[E0308]: `match` arms have incompatible types
     --> f53.rs:2:52
      |
    2 |     let _ = match Some(42) { Some(x) => x, None => "" };
      |             --------------              -          ^^ expected integer, found `&str`
      |             |                           |
      |             |                           this is found to be of type `{integer}`
      |             `match` arms have incompatible types
      ```
    estebank committed Dec 28, 2022
    Configuration menu
    Copy the full SHA
    05e8ba1 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    50c1be1 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    605ad65 View commit details
    Browse the repository at this point in the history
  4. Rollup merge of rust-lang#94145 - ssomers:binary_heap_tests, r=jyn514

    Test leaking of BinaryHeap Drain iterators
    
    Add test cases about forgetting the `BinaryHeap::Drain` iterator, and slightly fortifies some other test cases.
    
    Consists of separate commits that I don't think are relevant on their own (but I'll happily turn these into more PRs if desired).
    fee1-dead authored Dec 28, 2022
    Configuration menu
    Copy the full SHA
    dc98aa6 View commit details
    Browse the repository at this point in the history
  5. Rollup merge of rust-lang#103945 - H4x5:remove-iter-empty-hack, r=com…

    …piler-errors
    
    Remove `iter::Empty` hack
    
    `iter::Empty` uses a newtype to work around `#![feature(const_fn_fn_ptr_basics)]`, which has been stable since 1.61.0.
    fee1-dead authored Dec 28, 2022
    Configuration menu
    Copy the full SHA
    d1193ad View commit details
    Browse the repository at this point in the history
  6. Rollup merge of rust-lang#104024 - noeddl:unused-must-use, r=compiler…

    …-errors
    
    Fix `unused_must_use` warning for `Box::from_raw`
    fee1-dead authored Dec 28, 2022
    Configuration menu
    Copy the full SHA
    58233e9 View commit details
    Browse the repository at this point in the history
  7. Rollup merge of rust-lang#104708 - jonasspinner:fix-backoff-doc-to-ma…

    …tch-implementation, r=compiler-errors
    
    Fix backoff doc to match implementation
    
    The commit 8dddb22 in the crossbeam-channel PR (rust-lang#93563) changed the backoff strategy to be quadratic instead of exponential. This updates the doc to prevent confusion.
    fee1-dead authored Dec 28, 2022
    Configuration menu
    Copy the full SHA
    0818ba4 View commit details
    Browse the repository at this point in the history
  8. Rollup merge of rust-lang#105347 - estebank:single-line-match, r=comp…

    …iler-errors
    
    Account for `match` expr in single line
    
    When encountering `match Some(42) { Some(x) => x, None => "" };`, output
    
    ```
    error[E0308]: `match` arms have incompatible types
     --> f53.rs:2:52
      |
    2 |     let _ = match Some(42) { Some(x) => x, None => "" };
      |             --------------              -          ^^ expected integer, found `&str`
      |             |                           |
      |             |                           this is found to be of type `{integer}`
      |             `match` arms have incompatible types
      ```
    fee1-dead authored Dec 28, 2022
    Configuration menu
    Copy the full SHA
    ade9605 View commit details
    Browse the repository at this point in the history
  9. Rollup merge of rust-lang#105484 - nbdd0121:upcast, r=compiler-errors

    Implement allow-by-default `multiple_supertrait_upcastable` lint
    
    The lint detects when an object-safe trait has multiple supertraits.
    
    Enabled in libcore and liballoc as they are low-level enough that many embedded programs will use them.
    
    r? `@nikomatsakis`
    fee1-dead authored Dec 28, 2022
    Configuration menu
    Copy the full SHA
    8b3d0c4 View commit details
    Browse the repository at this point in the history
  10. Rollup merge of rust-lang#106184 - albertlarsan68:docs-106154, r=Nils…

    …trieb
    
    Fix `core::any` docs
    
    Thanks to ``@pbevin`` in rust-lang#106154
    
    Closes rust-lang#106154
    
    ``@rustbot`` labels +A-docs
    fee1-dead authored Dec 28, 2022
    Configuration menu
    Copy the full SHA
    45d6f02 View commit details
    Browse the repository at this point in the history
  11. Rollup merge of rust-lang#106201 - estebank:verbose-transparent, r=co…

    …mpiler-errors
    
    Emit fewer errors on invalid `#[repr(transparent)]` on `enum`
    
    Fix rust-lang#68420.
    fee1-dead authored Dec 28, 2022
    Configuration menu
    Copy the full SHA
    f837da7 View commit details
    Browse the repository at this point in the history
  12. Rollup merge of rust-lang#106205 - compiler-errors:oopsy, r=fee1-dead

    Remove some totally duplicated files in `rustc_infer`
    
    I have no idea why or how I duplicated these files from `compiler/rustc_infer/src/infer/error_reporting/note.rs`, but I did by accident, and nothing caught it 🤦
    fee1-dead authored Dec 28, 2022
    Configuration menu
    Copy the full SHA
    5e9c91c View commit details
    Browse the repository at this point in the history