<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rust/compiler/rustc_mir/src/transform/coverage/spans.rs, branch 1.52.0</title>
<subtitle>https://github.com/rust-lang/rust
</subtitle>
<id>http://git.dreamy.place/mirrors/rust/atom?h=1.52.0</id>
<link rel='self' href='http://git.dreamy.place/mirrors/rust/atom?h=1.52.0'/>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/'/>
<updated>2021-03-09T16:54:13+00:00</updated>
<entry>
<title>Update interpret step</title>
<updated>2021-03-09T16:54:13+00:00</updated>
<author>
<name>kadmin</name>
<email>julianknodt@gmail.com</email>
</author>
<published>2020-11-07T00:49:55+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=37a6c04718b9e8577b92aff2ab58a5c69a6c822a'/>
<id>urn:sha1:37a6c04718b9e8577b92aff2ab58a5c69a6c822a</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Fixes to Rust coverage</title>
<updated>2020-12-08T01:56:19+00:00</updated>
<author>
<name>Rich Kadel</name>
<email>richkadel@google.com</email>
</author>
<published>2020-12-08T01:41:53+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=95c268f64d71427b00b46fde8fbf499d380e9409'/>
<id>urn:sha1:95c268f64d71427b00b46fde8fbf499d380e9409</id>
<content type='text'>
Fixes: #79725

Some macros can create a situation where `fn_sig_span` and `body_span`
map to different files.

New documentation on coverage tests incorrectly assumed multiple test
binaries could just be listed at the end of the `llvm-cov` command,
but it turns out each binary needs a `--object` prefix.

This PR fixes the bug and updates the documentation to correct that
issue. It also fixes a few other minor issues in internal implementation
comments, and adds documentation on getting coverage results for doc
tests.
</content>
</entry>
<entry>
<title>Addressed feedback from 2020-12-01</title>
<updated>2020-12-03T17:50:10+00:00</updated>
<author>
<name>Rich Kadel</name>
<email>richkadel@google.com</email>
</author>
<published>2020-12-02T07:01:26+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=d96f351fa36d31f2b95b1cd2ad37ceaed3d395a8'/>
<id>urn:sha1:d96f351fa36d31f2b95b1cd2ad37ceaed3d395a8</id>
<content type='text'>
Added one more test (two files) showing coverage of generics and unused
functions across crates.

Created and referenced new Issues, as requested.

Added comments.

Added a note about the possible effects of compiler options on LLVM
coverage maps.
</content>
</entry>
<entry>
<title>Combination of commits</title>
<updated>2020-12-03T17:50:10+00:00</updated>
<author>
<name>Rich Kadel</name>
<email>richkadel@google.com</email>
</author>
<published>2020-12-01T07:58:08+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=def932ca865b86a5057517d8a0e27c0ca72a0815'/>
<id>urn:sha1:def932ca865b86a5057517d8a0e27c0ca72a0815</id>
<content type='text'>
Fixes multiple issue with counters, with simplification

  Includes a change to the implicit else span in ast_lowering, so coverage
  of the implicit else no longer spans the `then` block.

  Adds coverage for unused closures and async function bodies.

  Fixes: #78542

Adding unreachable regions for known MIR missing from coverage map

Cleaned up PR commits, and removed link-dead-code requirement and tests

  Coverage no longer depends on Issue #76038 (`-C link-dead-code` is
  no longer needed or enforced, so MSVC can use the same tests as
  Linux and MacOS now)

Restrict adding unreachable regions to covered files

  Improved the code that adds coverage for uncalled functions (with MIR
  but not-codegenned) to avoid generating coverage in files not already
  included in the files with covered functions.

Resolved last known issue requiring --emit llvm-ir workaround

  Fixed bugs in how unreachable code spans were added.
</content>
</entry>
<entry>
<title>Added a unit test for BcbCounters</title>
<updated>2020-11-13T00:22:25+00:00</updated>
<author>
<name>Rich Kadel</name>
<email>richkadel@google.com</email>
</author>
<published>2020-11-13T00:08:42+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=c131063988ff8ac86bbf53a3bf998145c6b99d6f'/>
<id>urn:sha1:c131063988ff8ac86bbf53a3bf998145c6b99d6f</id>
<content type='text'>
Restructured the code a little, to allow getting both the mir::Body and
coverage graph.
</content>
</entry>
<entry>
<title>Added some unit tests as requested</title>
<updated>2020-11-12T00:40:17+00:00</updated>
<author>
<name>Rich Kadel</name>
<email>richkadel@google.com</email>
</author>
<published>2020-11-03T05:32:48+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=bd0eb07af2deaff2c9f1e7553ea97341787779cd'/>
<id>urn:sha1:bd0eb07af2deaff2c9f1e7553ea97341787779cd</id>
<content type='text'>
As discussed in PR #78267, for example:

* https://github.com/rust-lang/rust/pull/78267#discussion_r515404722
* https://github.com/rust-lang/rust/pull/78267#discussion_r515405958
</content>
</entry>
<entry>
<title>Responded to all feedback as of 2020-10-30</title>
<updated>2020-11-06T02:24:18+00:00</updated>
<author>
<name>Rich Kadel</name>
<email>richkadel@google.com</email>
</author>
<published>2020-10-30T23:09:05+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=a7d956583ceae1487ad9b0748039bc9f0e8ac7aa'/>
<id>urn:sha1:a7d956583ceae1487ad9b0748039bc9f0e8ac7aa</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Addressed all feedback to date</title>
<updated>2020-11-06T02:24:17+00:00</updated>
<author>
<name>Rich Kadel</name>
<email>richkadel@google.com</email>
</author>
<published>2020-10-25T18:13:16+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=1973f84ebbb3b2bb4b9a1488b6553ac46b2db8d4'/>
<id>urn:sha1:1973f84ebbb3b2bb4b9a1488b6553ac46b2db8d4</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Adds coverage graphviz</title>
<updated>2020-11-06T02:24:14+00:00</updated>
<author>
<name>Rich Kadel</name>
<email>richkadel@google.com</email>
</author>
<published>2020-10-23T03:28:16+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=3291d28e9ac1173f033d240bc5f3f145c9c8dd59'/>
<id>urn:sha1:3291d28e9ac1173f033d240bc5f3f145c9c8dd59</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Implemented CoverageGraph of BasicCoverageBlocks</title>
<updated>2020-11-06T02:24:13+00:00</updated>
<author>
<name>Rich Kadel</name>
<email>richkadel@google.com</email>
</author>
<published>2020-10-23T06:11:38+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=b5020648fe294a1f139586e4243903d8c1a105b8'/>
<id>urn:sha1:b5020648fe294a1f139586e4243903d8c1a105b8</id>
<content type='text'>
</content>
</entry>
</feed>
