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

Merged
merged 15 commits into from
Feb 23, 2024
Merged

Rollup of 6 pull requests #121514

merged 15 commits into from
Feb 23, 2024

Commits on Feb 13, 2024

  1. Configuration menu
    Copy the full SHA
    61d6443 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    9dd6eda View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    8e83d0c View commit details
    Browse the repository at this point in the history

Commits on Feb 23, 2024

  1. Configuration menu
    Copy the full SHA
    8bd33e3 View commit details
    Browse the repository at this point in the history
  2. coverage: Rename is_closure to is_hole

    When refining covspans, we don't specifically care which ones represent
    closures; we just want to know which ones represent "holes" that should be
    carved out of other spans and then discarded.
    
    (Closures are currently the only source of hole spans, but in the future we
    might want to also create hole spans for nested items and inactive `#[cfg(..)]`
    regions.)
    Zalathar committed Feb 23, 2024
    Configuration menu
    Copy the full SHA
    44c8f55 View commit details
    Browse the repository at this point in the history
  3. remove repetitive words

    Signed-off-by: cui fliter <imcusg@gmail.com>
    cuishuang committed Feb 23, 2024
    Configuration menu
    Copy the full SHA
    824d75c View commit details
    Browse the repository at this point in the history
  4. Make timespec capping public to crate::sys

    It is used in:
    
    - `library/std/src/sys/locks/condvar/pthread.rs`
    - `library/std/src/sys/pal/unix/thread_parking/pthread.rs`
    flba-eb committed Feb 23, 2024
    Configuration menu
    Copy the full SHA
    4f66783 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    35a9e73 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    9a2d550 View commit details
    Browse the repository at this point in the history
  7. Rollup merge of rust-lang#120742 - Nadrieril:use-min_exh_pats, r=comp…

    …iler-errors
    
    mark `min_exhaustive_patterns` as complete
    
    This is step 1 and 2 of my [proposal](rust-lang#119612 (comment)) to move `min_exhaustive_patterns` forward. The vast majority of in-tree use cases of `exhaustive_patterns` are covered by `min_exhaustive_patterns`. There are a few cases that still require `exhaustive_patterns` in tests and they're all behind references.
    
    r? ``@ghost``
    matthiaskrgr committed Feb 23, 2024
    Configuration menu
    Copy the full SHA
    26cb6c7 View commit details
    Browse the repository at this point in the history
  8. Rollup merge of rust-lang#121470 - clubby789:anon-struct-in-enum, r=f…

    …mease
    
    Don't ICE on anonymous struct in enum variant
    
    Fixes rust-lang#121446
    
    Computing `adt_def` for the anon struct calls `adt_def` on the parent to find its repr. If the parent is a non-item (e.g. an enum variant) we should have already emitted at least one error, so we just use the repr of the anonymous struct to avoid an ICE.
    
    cc ``@frank-king``
    matthiaskrgr committed Feb 23, 2024
    Configuration menu
    Copy the full SHA
    4d5c4e5 View commit details
    Browse the repository at this point in the history
  9. Rollup merge of rust-lang#121492 - Zalathar:hole, r=fmease

    coverage: Rename `is_closure` to `is_hole`
    
    Extracted from rust-lang#121433, since I was having second thoughts about some of the other changes bundled in that PR, but these changes are still fine.
    
    ---
    
    When refining covspans, we don't specifically care which ones represent closures; we just want to know which ones represent "holes" that should be carved out of other spans and then discarded.
    
    (Closures are currently the only source of hole spans, but in the future we might want to also create hole spans for nested items and inactive `#[cfg(..)]` regions.)
    
    ``@rustbot`` label +A-code-coverage
    matthiaskrgr committed Feb 23, 2024
    Configuration menu
    Copy the full SHA
    13b9bf5 View commit details
    Browse the repository at this point in the history
  10. Rollup merge of rust-lang#121495 - cuishuang:master, r=clubby789

    remove repetitive words
    matthiaskrgr committed Feb 23, 2024
    Configuration menu
    Copy the full SHA
    15b7795 View commit details
    Browse the repository at this point in the history
  11. Rollup merge of rust-lang#121498 - flba-eb:make_timespec_capping_publ…

    …ic, r=Nilstrieb
    
    Make QNX/NTO specific "timespec capping" public to crate::sys
    
    It is used in:
    
    - `library/std/src/sys/locks/condvar/pthread.rs`
    - `library/std/src/sys/pal/unix/thread_parking/pthread.rs`
    
    This is probably required due to introduction of `sys/pal` and rust-lang#121177
    
    `@rustbot` label +O-neutrino
    CC: `@jonathanpallant` `@japaric` `@gh-tr`
    matthiaskrgr committed Feb 23, 2024
    Configuration menu
    Copy the full SHA
    2e8177a View commit details
    Browse the repository at this point in the history
  12. Rollup merge of rust-lang#121510 - RalfJung:lint-overflowing-ops, r=o…

    …li-obk
    
    lint-overflowing-ops: unify cases and remove redundancy
    
    Follow-up to rust-lang#121432
    r? `@oli-obk`
    matthiaskrgr committed Feb 23, 2024
    Configuration menu
    Copy the full SHA
    06e54f8 View commit details
    Browse the repository at this point in the history