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

Closed
wants to merge 20 commits into from

Commits on Mar 15, 2021

  1. Rename #[doc(spotlight)] to #[doc(notable_trait)]

    "spotlight" is not a very specific or self-explaining name.
    Additionally, the dialog that it triggers is called "Notable traits".
    So, "notable trait" is a better name.
    
    * Rename `#[doc(spotlight)]` to `#[doc(notable_trait)]`
    * Rename `#![feature(doc_spotlight)]` to `#![feature(doc_notable_trait)]`
    * Update documentation
    * Improve documentation
    camelid committed Mar 15, 2021
    Configuration menu
    Copy the full SHA
    34c6cee View commit details
    Browse the repository at this point in the history

Commits on Mar 16, 2021

  1. Configuration menu
    Copy the full SHA
    770a9cf View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    525e23a View commit details
    Browse the repository at this point in the history

Commits on Mar 26, 2021

  1. Break when there is a mismatch in the type count

    When other errors are generated, there can be a mismatch between the
    amount of input types in MIR, and the amount in the function itself.
    Break from the comparative loop if this is the case to prevent
    out-of-bounds.
    MidasLamb committed Mar 26, 2021
    Configuration menu
    Copy the full SHA
    5676bd5 View commit details
    Browse the repository at this point in the history

Commits on Mar 30, 2021

  1. Configuration menu
    Copy the full SHA
    c3cf93a View commit details
    Browse the repository at this point in the history
  2. Reduce size of statements

    roxelo committed Mar 30, 2021
    Configuration menu
    Copy the full SHA
    1ef70d8 View commit details
    Browse the repository at this point in the history
  3. fix clippy error

    roxelo committed Mar 30, 2021
    Configuration menu
    Copy the full SHA
    c2c76a0 View commit details
    Browse the repository at this point in the history

Commits on Apr 1, 2021

  1. Update coverage tests

    roxelo committed Apr 1, 2021
    Configuration menu
    Copy the full SHA
    42797e2 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    2e4215c View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    a38d3cb View commit details
    Browse the repository at this point in the history
  4. add OR_PATTERNS_BACK_COMPAT lint

    test: add more cases
    
    test: add comments
    
    refine msg
    Rustin170506 committed Apr 1, 2021
    Configuration menu
    Copy the full SHA
    2c66e15 View commit details
    Browse the repository at this point in the history
  5. Add a test that triggers the out-of-bounds ICE.

    Add a test that has the right input to trigger an out-of-bounds
    error when in MIR the local_decls and the normalized_input_tys don't
    match in amount.
    MidasLamb committed Apr 1, 2021
    Configuration menu
    Copy the full SHA
    2d813b2 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    5f70aaf View commit details
    Browse the repository at this point in the history
  7. Rollup merge of rust-lang#80828 - SNCPlay42:opaque-projections, r=est…

    …ebank
    
    Fix expected/found order on impl trait projection mismatch error
    
    fixes rust-lang#68561
    
    This PR adds a new `ObligationCauseCode` used when checking the concrete type of an impl trait satisfies its bounds, and checks for that cause code in the existing test to see if a projection's normalized type should be the "expected" or "found" type.
    
    The second commit adds a `peel_derives` to that test, which appears to be necessary in some cases (see projection-mismatch-in-impl-where-clause.rs, which would still give expected/found in the wrong order otherwise). This caused some other changes in diagnostics not involving impl trait, but they look correct to me.
    Dylan-DPC authored Apr 1, 2021
    Configuration menu
    Copy the full SHA
    a0d8ea4 View commit details
    Browse the repository at this point in the history
  8. Rollup merge of rust-lang#80965 - camelid:rename-doc-spotlight, r=jyn514

    Rename `#[doc(spotlight)]` to `#[doc(notable_trait)]`
    
    Fixes rust-lang#80936.
    
    "spotlight" is not a very specific or self-explaining name.
    Additionally, the dialog that it triggers is called "Notable traits".
    So, "notable trait" is a better name.
    
    * Rename `#[doc(spotlight)]` to `#[doc(notable_trait)]`
    * Rename `#![feature(doc_spotlight)]` to `#![feature(doc_notable_trait)]`
    * Update documentation
    * Improve documentation
    
    r? `@Manishearth`
    Dylan-DPC authored Apr 1, 2021
    Configuration menu
    Copy the full SHA
    1e5ae60 View commit details
    Browse the repository at this point in the history
  9. Rollup merge of rust-lang#83468 - hi-rustin:rustin-patch-lint, r=niko…

    …matsakis
    
    add OR_PATTERNS_BACK_COMPAT lint
    
    close rust-lang#83318
    Dylan-DPC authored Apr 1, 2021
    Configuration menu
    Copy the full SHA
    81bffb1 View commit details
    Browse the repository at this point in the history
  10. Rollup merge of rust-lang#83521 - sexxi-goose:quick-diagnostic-fix, r…

    …=nikomatsakis
    
    2229: Fix diagnostic issue when using FakeReads in closures
    
    This PR fixes a diagnostic issue caused by rust-lang#82536. A temporary work around was used in this merged PR which involved feature gating the addition of FakeReads introduced as a result of pattern matching in closures.
    
    The fix involves adding an optional closure DefId to ForLet and ForMatchedPlace FakeReadCauses. This DefId will only be added if a closure pattern matches a Place starting with an Upvar.
    
    r? ``@nikomatsakis``
    Dylan-DPC authored Apr 1, 2021
    Configuration menu
    Copy the full SHA
    0fc32d7 View commit details
    Browse the repository at this point in the history
  11. Rollup merge of rust-lang#83535 - MidasLamb:mir-type-count-mismatch, …

    …r=nikomatsakis
    
    Break when there is a mismatch in the type count
    
    When other errors are generated, there can be a mismatch between the
    amount of input types in MIR, and the amount in the function itself.
    Break from the comparative loop if this is the case to prevent
    out-of-bounds.
    Fixes rust-lang#83499
    Dylan-DPC authored Apr 1, 2021
    Configuration menu
    Copy the full SHA
    d101414 View commit details
    Browse the repository at this point in the history
  12. Rollup merge of rust-lang#83740 - obi1kenobi:patch-1, r=joshtriplett

    Fix comment typo in once.rs
    
    I believe I came across a minor typo in a comment. I am not particularly familiar with this part of the codebase, but I have read the surrounding code as well as the referenced `park` and `unpark` functions, and I believe my proposed change is true to the intended meaning of the comment.
    
    I intentionally tried to keep the change as minimal as possible. If I have the maintainers' permission, I'd also love to add a comma to improve readability as follows: `Luckily ``park`` comes with the guarantee that if it got an ``unpark`` just before on an unparked thread, it does not park.`
    Dylan-DPC authored Apr 1, 2021
    Configuration menu
    Copy the full SHA
    e333d69 View commit details
    Browse the repository at this point in the history
  13. Rollup merge of rust-lang#83745 - JohnTitor:jtitor-mailmap, r=Mark-Si…

    …mulacrum
    
    Add my new email address to .mailmap
    Dylan-DPC authored Apr 1, 2021
    Configuration menu
    Copy the full SHA
    fa7e9ea View commit details
    Browse the repository at this point in the history