<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rust/tests/coverage/if_not.coverage, branch try</title>
<subtitle>https://github.com/rust-lang/rust
</subtitle>
<id>http://git.dreamy.place/mirrors/rust/atom?h=try</id>
<link rel='self' href='http://git.dreamy.place/mirrors/rust/atom?h=try'/>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/'/>
<updated>2025-05-06T10:42:25+00:00</updated>
<entry>
<title>coverage: Only merge adjacent coverage spans</title>
<updated>2025-05-06T10:42:25+00:00</updated>
<author>
<name>Zalathar</name>
<email>Zalathar@users.noreply.github.com</email>
</author>
<published>2025-04-12T07:52:55+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=4d5a1acebfe031ca2af75786295a2cd2a0633943'/>
<id>urn:sha1:4d5a1acebfe031ca2af75786295a2cd2a0633943</id>
<content type='text'>
This also removes some manipulation of the function signature span that only
made sense in the context of merging non-adjacent spans.
</content>
</entry>
<entry>
<title>Revert "Auto merge of #130766 - clarfonthey:stable-coverage-attribute, r=wesleywiser"</title>
<updated>2024-12-23T01:30:37+00:00</updated>
<author>
<name>Zalathar</name>
<email>Zalathar@users.noreply.github.com</email>
</author>
<published>2024-12-22T03:26:54+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=87c2f9a5be900e835f3c41cec2886d54ec0ca012'/>
<id>urn:sha1:87c2f9a5be900e835f3c41cec2886d54ec0ca012</id>
<content type='text'>
This reverts commit 1d35638dc38dbfbf1cc2a9823135dfcf3c650169, reversing
changes made to f23a80a4c2fbca593b64e70f5970368824b4c5e9.
</content>
</entry>
<entry>
<title>Stabilize #[coverage] attribute</title>
<updated>2024-12-17T02:07:06+00:00</updated>
<author>
<name>ltdk</name>
<email>usr@ltdk.xyz</email>
</author>
<published>2024-09-23T23:40:22+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=cb487cc2fa3c5ebfddd22d6721cf1669943c1774'/>
<id>urn:sha1:cb487cc2fa3c5ebfddd22d6721cf1669943c1774</id>
<content type='text'>
</content>
</entry>
<entry>
<title>[AUTO_GENERATED] Migrate compiletest to use `ui_test`-style `//@` directives</title>
<updated>2024-02-22T16:04:04+00:00</updated>
<author>
<name>许杰友 Jieyou Xu (Joe)</name>
<email>jieyouxu@outlook.com</email>
</author>
<published>2024-02-22T12:10:29+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=6e48b96692d63a79a14563f27fe5185f122434f8'/>
<id>urn:sha1:6e48b96692d63a79a14563f27fe5185f122434f8</id>
<content type='text'>
</content>
</entry>
<entry>
<title>coverage: Add `#[rustfmt::skip]` to tests with non-standard formatting</title>
<updated>2024-01-16T04:56:37+00:00</updated>
<author>
<name>Zalathar</name>
<email>Zalathar@users.noreply.github.com</email>
</author>
<published>2024-01-16T02:40:01+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=f1494425bbb68e71f2bf3aa215fb71978b36acf2'/>
<id>urn:sha1:f1494425bbb68e71f2bf3aa215fb71978b36acf2</id>
<content type='text'>
These tests deliberately use non-standard formatting, so that the line
execution counts reported by `llvm-cov` reveal additional information about
where code regions begin and end.
</content>
</entry>
<entry>
<title>coverage: Use `SpanMarker` to mark the full condition of `if !`</title>
<updated>2023-12-08T11:40:49+00:00</updated>
<author>
<name>Zalathar</name>
<email>Zalathar@users.noreply.github.com</email>
</author>
<published>2023-11-23T01:50:40+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=d90fd027c887247caa501db5f49352fdfab769d9'/>
<id>urn:sha1:d90fd027c887247caa501db5f49352fdfab769d9</id>
<content type='text'>
When MIR is built for an if-not expression, the `!` part of the condition
doesn't correspond to any MIR statement, so coverage instrumentation normally
can't see it.

We can fix that by deliberately injecting a dummy statement whose sole purpose
is to associate that span with its enclosing block.
</content>
</entry>
<entry>
<title>coverage: Add a dedicated test for coverage of `if !`</title>
<updated>2023-12-08T11:40:49+00:00</updated>
<author>
<name>Zalathar</name>
<email>Zalathar@users.noreply.github.com</email>
</author>
<published>2023-11-23T02:52:50+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=d2d742c4ccc8c18fe13bfc42b3a7b9b66486b294'/>
<id>urn:sha1:d2d742c4ccc8c18fe13bfc42b3a7b9b66486b294</id>
<content type='text'>
</content>
</entry>
</feed>
