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

Merged
merged 17 commits into from
May 3, 2024
Merged

Rollup of 7 pull requests #124675

merged 17 commits into from
May 3, 2024

Commits on Mar 14, 2024

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

Commits on Apr 24, 2024

  1. Fix cannot usage in time.rs

    trueb2 committed Apr 24, 2024
    Configuration menu
    Copy the full SHA
    3ad0618 View commit details
    Browse the repository at this point in the history

Commits on Apr 29, 2024

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

Commits on Apr 30, 2024

  1. Configuration menu
    Copy the full SHA
    52d608b View commit details
    Browse the repository at this point in the history
  2. coverage: Set up MC/DC bitmaps without additional unsafe code

    Because this now always takes place at the start of the function, we can just
    use the normal `alloca` method and then initialize each bitmap immediately.
    
    This patch also moves bitmap setup out of the `mcdc_parameters` method, because
    there is no longer any particular reason for it to be there.
    Zalathar committed Apr 30, 2024
    Configuration menu
    Copy the full SHA
    0b3a479 View commit details
    Browse the repository at this point in the history
  3. coverage: Replace max_decision_depth with num_condition_bitmaps

    This clearly distinguishes individual decision-depth indices from the total
    number of condition bitmaps to allocate.
    Zalathar committed Apr 30, 2024
    Configuration menu
    Copy the full SHA
    de972b7 View commit details
    Browse the repository at this point in the history

Commits on May 1, 2024

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

Commits on May 2, 2024

  1. Configuration menu
    Copy the full SHA
    2245630 View commit details
    Browse the repository at this point in the history
  2. Update based on review

    GKFX committed May 2, 2024
    Configuration menu
    Copy the full SHA
    0e0042f View commit details
    Browse the repository at this point in the history

Commits on May 3, 2024

  1. Configuration menu
    Copy the full SHA
    3f6703b View commit details
    Browse the repository at this point in the history
  2. Rollup merge of rust-lang#122492 - GrigorenkoPV:ptr_as_ref_unchecked,…

    … r=workingjubilee
    
    Implement ptr_as_ref_unchecked
    
    Implementation of rust-lang#122034.
    
    Prefixed the feature name with `ptr_` for clarity.
    
    Linked const-unstability to rust-lang#91822, so the post there should probably be updated to mentions the 3 new methods when/if this PR is merged.
    matthiaskrgr authored May 3, 2024
    Configuration menu
    Copy the full SHA
    a296693 View commit details
    Browse the repository at this point in the history
  3. Rollup merge of rust-lang#123815 - trueb2:patch-1, r=workingjubilee

    Fix cannot usage in time.rs
    
    Fix a small grammar error in usage of cannot in time.rs errors
    matthiaskrgr authored May 3, 2024
    Configuration menu
    Copy the full SHA
    4b913a2 View commit details
    Browse the repository at this point in the history
  4. Rollup merge of rust-lang#124059 - RalfJung:default_alloc_error_hook,…

    … r=workingjubilee
    
    default_alloc_error_hook: explain difference to default __rdl_oom in alloc
    
    Though I'm not sure if that is really the reason that this code is duplicated. On no_std it may already be possible to call user-defined code on allocation failure.
    matthiaskrgr authored May 3, 2024
    Configuration menu
    Copy the full SHA
    8e3f61b View commit details
    Browse the repository at this point in the history
  5. Rollup merge of rust-lang#124510 - linyihai:raw-ident-in-typo-suggest…

    …ion, r=fmease
    
    Add raw identifier in a typo suggestion
    
    Fixes rust-lang#68962
    matthiaskrgr authored May 3, 2024
    Configuration menu
    Copy the full SHA
    bd305e1 View commit details
    Browse the repository at this point in the history
  6. Rollup merge of rust-lang#124555 - Zalathar:init-coverage, r=nnethercote

    coverage: Clean up creation of MC/DC condition bitmaps
    
    This PR improves the code for creating and initializing [MC/DC](https://en.wikipedia.org/wiki/Modified_condition/decision_coverage) condition bitmap variables, as introduced by rust-lang#123409 and modified by rust-lang#124255.
    
    - The condition bitmap variables are now created eagerly at the start of per-function codegen, via a new `init_coverage` method in `CoverageInfoBuilderMethods`. This avoids having to retroactively create the bitmaps while doing codegen for an individual coverage statement.
    - As a result, we can now create and initialize those bitmaps using existing safe APIs, instead of having to perform our own unsafe call to `llvm::LLVMBuildAlloca`.
    - This PR also tweaks the way we count the number of condition bitmaps needed, by tracking the total number of bitmaps needed (max depth + 1), instead of only tracking the maximum depth. This reduces the potential for subtle off-by-one confusion.
    matthiaskrgr authored May 3, 2024
    Configuration menu
    Copy the full SHA
    613bccc View commit details
    Browse the repository at this point in the history
  7. Rollup merge of rust-lang#124593 - GKFX:cstr-literals-in-api-docs, r=…

    …workingjubilee
    
    Describe and use CStr literals in CStr and CString docs
    
    Mention CStr literals in the description of both types, and use them in some of the code samples for CStr. This is intended to make C string literals more discoverable.
    
    Additionally, I don't think the orange "This example is not tested" warnings are very encouraging, so I have made the examples on `CStr` build.
    matthiaskrgr authored May 3, 2024
    Configuration menu
    Copy the full SHA
    1ff247c View commit details
    Browse the repository at this point in the history
  8. Rollup merge of rust-lang#124630 - Kobzol:yaml-anchor, r=pietroalbini

    CI: remove `env-x86_64-apple-tests` YAML anchor
    
    This PR removes the only remaining anchor in the definition of CI jobs. This anchor made it annoying to copy-paste the job e.g. to PR CI.
    
    Fixes: https://rust-lang.zulipchat.com/#narrow/stream/242791-t-infra/topic/How.20do.20you.20edit.20PR.20CI.20to.20test.20PR.20now.3F
    
    r? ``@pietroalbini``
    matthiaskrgr authored May 3, 2024
    Configuration menu
    Copy the full SHA
    56b2989 View commit details
    Browse the repository at this point in the history