-
Notifications
You must be signed in to change notification settings - Fork 12.2k
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
coverage: Several small cleanups in spans
#116754
Commits on Oct 16, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 46c545c - Browse repository at this point
Copy the full SHA 46c545cView commit details -
coverage: Rename
check_pending_dups
tomaybe_flush_pending_dups
This method's main responsibility is to flush the pending dups into refined spans, if appropriate.
Configuration menu - View commit details
-
Copy full SHA for 9b6ce4f - Browse repository at this point
Copy the full SHA 9b6ce4fView commit details -
Configuration menu - View commit details
-
Copy full SHA for d928d3e - Browse repository at this point
Copy the full SHA d928d3eView commit details -
coverage: Use
DUMMY_SP
instead of creating a dummy span manuallyThis patch also sorts the constructor fields into declaration order.
Configuration menu - View commit details
-
Copy full SHA for fa2e262 - Browse repository at this point
Copy the full SHA fa2e262View commit details -
coverage: Simplify
push_refined_span
It turns out that all of the `len` manipulation here was just reimplementing `last_mut`.
Configuration menu - View commit details
-
Copy full SHA for 5f1e8f9 - Browse repository at this point
Copy the full SHA 5f1e8f9View commit details -
Configuration menu - View commit details
-
Copy full SHA for 97d1a91 - Browse repository at this point
Copy the full SHA 97d1a91View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7bbe4be - Browse repository at this point
Copy the full SHA 7bbe4beView commit details -
coverage: Remove redundant field
prev_expn_span
This span can always be retrieved from `prev`, so there is no need to store it separately.
Configuration menu - View commit details
-
Copy full SHA for 9bb27f3 - Browse repository at this point
Copy the full SHA 9bb27f3View commit details -
coverage: Call
prev
/curr
less into_refined_spans
This makes it easier to see that the non-initial cases assume that `prev` and `curr` are set, and all operate on the same prev/curr references.
Configuration menu - View commit details
-
Copy full SHA for b1c44f4 - Browse repository at this point
Copy the full SHA b1c44f4View commit details -
coverage: Call
prev
/curr
less in other placesThis reduces clutter, and makes it easier to notice regions where mutations definitely don't occur.
Configuration menu - View commit details
-
Copy full SHA for 41038db - Browse repository at this point
Copy the full SHA 41038dbView commit details -
Configuration menu - View commit details
-
Copy full SHA for 25e6303 - Browse repository at this point
Copy the full SHA 25e6303View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4ab4273 - Browse repository at this point
Copy the full SHA 4ab4273View commit details -
coverage: Inline
span_bcb_dominates
Interacting with `basic_coverage_blocks` directly makes it easier to satisfy the borrow checker when mutating `pending_dups` while reading other fields.
Configuration menu - View commit details
-
Copy full SHA for 5e5a8e7 - Browse repository at this point
Copy the full SHA 5e5a8e7View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7aa1b83 - Browse repository at this point
Copy the full SHA 7aa1b83View commit details