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 12 pull requests #121859

Merged
merged 28 commits into from
Mar 1, 2024
Merged

Rollup of 12 pull requests #121859

merged 28 commits into from
Mar 1, 2024

Commits on Feb 6, 2024

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

Commits on Feb 25, 2024

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

Commits on Feb 28, 2024

  1. remove Mutex::unlock

    HTGAzureX1212 committed Feb 28, 2024
    Configuration menu
    Copy the full SHA
    a9907b1 View commit details
    Browse the repository at this point in the history

Commits on Feb 29, 2024

  1. Configuration menu
    Copy the full SHA
    4996194 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    3ba50b3 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    cc13f82 View commit details
    Browse the repository at this point in the history
  4. Make the success arms of if lhs || rhs meet up in a separate block

    In the previous code, the success block of `lhs` would jump directly to the
    success block of `rhs`. However, `rhs_success_block` could already contain
    statements that are specific to the RHS, and the direct goto causes them to be
    executed in the LHS success path as well.
    
    This patch therefore creates a fresh block that the LHS and RHS success blocks
    can both jump to.
    Zalathar committed Feb 29, 2024
    Configuration menu
    Copy the full SHA
    a7832b1 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    f11713b View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    19ee457 View commit details
    Browse the repository at this point in the history
  7. Remove unnecessary Level:: qualifiers.

    We have `use Level::*;` in this file.
    nnethercote committed Feb 29, 2024
    Configuration menu
    Copy the full SHA
    721c741 View commit details
    Browse the repository at this point in the history
  8. CFI: Remove unused typeid_for_fnsig

    Removes unused `typeid_for_fnsig` for simplifying the compiler CFI API.
    rcvalle committed Feb 29, 2024
    Configuration menu
    Copy the full SHA
    7e64163 View commit details
    Browse the repository at this point in the history
  9. Handle stashing of delayed bugs.

    By just emitting them immediately, because it does happen in practice,
    when errors are downgraded to delayed bugs.
    
    We already had one case in `lint.rs` where we handled this at the
    callsite. This commit changes things so it's handled within
    `stash_diagnostic` instead, because rust-lang#121812 identified a second case,
    and it's possible there are more.
    
    Fixes rust-lang#121812.
    nnethercote committed Feb 29, 2024
    Configuration menu
    Copy the full SHA
    44f0043 View commit details
    Browse the repository at this point in the history

Commits on Mar 1, 2024

  1. Configuration menu
    Copy the full SHA
    2064c19 View commit details
    Browse the repository at this point in the history
  2. Fix typo in comment

    gurry committed Mar 1, 2024
    Configuration menu
    Copy the full SHA
    beac5b1 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    f6d2607 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    0700ec0 View commit details
    Browse the repository at this point in the history
  5. Rollup merge of rust-lang#120646 - clubby789:uninit-destructuring-sug…

    …g, r=michaelwoerister
    
    Fix incorrect suggestion for uninitialized binding in pattern
    
    Fixes rust-lang#120634
    matthiaskrgr committed Mar 1, 2024
    Configuration menu
    Copy the full SHA
    80549a8 View commit details
    Browse the repository at this point in the history
  6. Rollup merge of rust-lang#121416 - veera-sivarajan:bugfix-120785, r=n…

    …nethercote
    
    Improve error messages for generics with default parameters
    
    Fixes rust-lang#120785
    
    Issue: Previously, all type parameters with default types were deliberately ignored to simplify error messages. For example, an error message for Box type would display `Box<T>` instead of `Box<T, _>`. But, this resulted in unclear error message when a concrete type was used instead of the default type.
    
    Fix: This PR fixes it by checking if a concrete type is specified after a default type to display the entire type name or the simplified type name.
    matthiaskrgr committed Mar 1, 2024
    Configuration menu
    Copy the full SHA
    f23c6dd View commit details
    Browse the repository at this point in the history
  7. Rollup merge of rust-lang#121475 - jieyouxu:tidy-stderr-check, r=the8…

    …472,compiler-errors
    
    Add tidy check for .stderr/.stdout files for non-existent test revisions
    
    Closes rust-lang#77498.
    matthiaskrgr committed Mar 1, 2024
    Configuration menu
    Copy the full SHA
    dcde08f View commit details
    Browse the repository at this point in the history
  8. Rollup merge of rust-lang#121580 - Suyashtnt:issue-121502-fix, r=mich…

    …aelwoerister
    
    make unused_imports less assertive in test modules
    
    closes rust-lang#121502
    
    This is a fairly small change and I used the fix suggested in the example expected error message.
    Not sure if I should've rather used the alternatives but this one seems the most descriptive.
    
    Some alternatives:
    - if this is meant to be a test module, add `#[cfg(test)]` to the containing module
    - try adding #[cfg(test)] to this test module
    - consider adding #[allow(unused_imports)] if you want to silent the lint on the unused import
    - consider removing the unused import
    matthiaskrgr committed Mar 1, 2024
    Configuration menu
    Copy the full SHA
    58825b4 View commit details
    Browse the repository at this point in the history
  9. Rollup merge of rust-lang#121736 - HTGAzureX1212:HTGAzureX1212/remove…

    …-mutex-unlock, r=jhpratt
    
    Remove `Mutex::unlock` Function
    
    As of the completion of the FCP in rust-lang#81872 (comment), it has come to the conclusion to be closed.
    
    This PR removes the function entirely in light of the above.
    
    Closes rust-lang#81872.
    matthiaskrgr committed Mar 1, 2024
    Configuration menu
    Copy the full SHA
    90ca049 View commit details
    Browse the repository at this point in the history
  10. Rollup merge of rust-lang#121784 - Zalathar:if-or-converge, r=Nadrieril

    Make the success arms of `if lhs || rhs` meet up in a separate block
    
    Extracted from rust-lang#118305, where this is necessary to avoid introducing a bug when injecting marker statements into the then/else arms.
    
    ---
    
    In the previous code (rust-lang#111752), the success block of `lhs` would jump directly to the success block of `rhs`. However, `rhs_success_block` could already contain statements that are specific to the RHS, and the direct goto causes them to be executed in the LHS success path as well.
    
    This patch therefore creates a fresh block that the LHS and RHS success blocks can both jump to.
    
    ---
    
    I think the reason we currently get away with this is that `rhs_success_block` usually doesn't contain anything other than StorageDead statements for locals used by the RHS, and those statements don't seem to cause problems in the LHS success path (which never makes those locals live).
    
    But if we start adding meaningful statements for branch coverage (or MC/DC coverage), it's important to keep the LHS and RHS blocks separate.
    matthiaskrgr committed Mar 1, 2024
    Configuration menu
    Copy the full SHA
    1a4c93e View commit details
    Browse the repository at this point in the history
  11. Rollup merge of rust-lang#121818 - rcvalle:rust-cfi-remove-unused-typ…

    …eid-for-fnsig, r=workingjubilee
    
    CFI: Remove unused `typeid_for_fnsig`
    
    Removes unused `typeid_for_fnsig` for simplifying the compiler CFI API.
    matthiaskrgr committed Mar 1, 2024
    Configuration menu
    Copy the full SHA
    b5ef517 View commit details
    Browse the repository at this point in the history
  12. Rollup merge of rust-lang#121819 - nnethercote:fix-121812, r=oli-obk

    Handle stashing of delayed bugs
    
    By just emitting them immediately, because it does happen in practice, when errors are downgraded to delayed bugs.
    
    We already had one case in `lint.rs` where we handled this at the callsite. This commit changes things so it's handled within `stash_diagnostic` instead, because rust-lang#121812 identified a second case, and it's possible there are more.
    
    Fixes rust-lang#121812.
    
    r? ````@oli-obk````
    matthiaskrgr committed Mar 1, 2024
    Configuration menu
    Copy the full SHA
    47a491d View commit details
    Browse the repository at this point in the history
  13. Rollup merge of rust-lang#121828 - mu001999:clean, r=Nilstrieb

    Remove unused fluent messages
    
    Unused fluent messages after rust-lang#121779
    matthiaskrgr committed Mar 1, 2024
    Configuration menu
    Copy the full SHA
    01b58bd View commit details
    Browse the repository at this point in the history
  14. Rollup merge of rust-lang#121831 - gurry:fix-typo, r=oli-obk

    Fix typo in comment
    
    "pop" should have been "prop"
    matthiaskrgr committed Mar 1, 2024
    Configuration menu
    Copy the full SHA
    96e3777 View commit details
    Browse the repository at this point in the history
  15. Rollup merge of rust-lang#121850 - reitermarkus:generic-nonzero-unsaf…

    …e-trait, r=Nilstrieb
    
    Make `ZeroablePrimitive` trait unsafe.
    
    Tracking issue: rust-lang#120257
    
    r? `@dtolnay`
    matthiaskrgr committed Mar 1, 2024
    Configuration menu
    Copy the full SHA
    68dd5e6 View commit details
    Browse the repository at this point in the history
  16. Rollup merge of rust-lang#121853 - lcnr:normalizes_to-polarity, r=com…

    …piler-errors
    
    normalizes-to: handle negative impls
    
    necessary to build the stage 2 compiler in rust-lang#121848 😁
    
    r? `@compiler-errors`
    matthiaskrgr committed Mar 1, 2024
    Configuration menu
    Copy the full SHA
    ff22925 View commit details
    Browse the repository at this point in the history