Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: rust-lang/rust
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: d0dfcd8
Choose a base ref
...
head repository: rust-lang/rust
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: bc042ac
Choose a head ref
  • 6 commits
  • 27 files changed
  • 1 contributor

Commits on Apr 21, 2024

  1. Copy the full SHA
    381f8be View commit details
  2. coverage: Simplify counter expressions (a + b) - b to just a

    There are other simplifications we could potentially be performing, but this
    one is directly motivated by branch coverage of match arms, because it
    naturally handles the common case where a match arm has no guard.
    Zalathar committed Apr 21, 2024
    Copy the full SHA
    6733502 View commit details
  3. Copy the full SHA
    92f6c8e View commit details
  4. coverage: Represent branches as a list of arms

    Within the `InstrumentCoverage` pass, we now represent branches as a list of
    arms, instead of a true/false pair, until we prepare the final table of
    mappings to be attached to the MIR body.
    
    (We then flatten the list into two-way branches by treating each arm as a
    branch between its success block, and the total of all later arms.)
    
    Currently all of the branches produced by MIR building are still two-way, but
    this is a step towards allowing many-way branches.
    Zalathar committed Apr 21, 2024
    Copy the full SHA
    ec65234 View commit details
  5. Copy the full SHA
    7648e4b View commit details
  6. coverage: Treat each match arm as a "branch" for branch coverage

    Zalathar committed Apr 21, 2024
    Copy the full SHA
    bc042ac View commit details
Loading