<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rust/tests/coverage/async.coverage, branch 1.84.1</title>
<subtitle>https://github.com/rust-lang/rust
</subtitle>
<id>http://git.dreamy.place/mirrors/rust/atom?h=1.84.1</id>
<link rel='self' href='http://git.dreamy.place/mirrors/rust/atom?h=1.84.1'/>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/'/>
<updated>2024-09-10T06:08:36+00:00</updated>
<entry>
<title>coverage: Extract `executor::block_on` from several async coverage tests</title>
<updated>2024-09-10T06:08:36+00:00</updated>
<author>
<name>Zalathar</name>
<email>Zalathar@users.noreply.github.com</email>
</author>
<published>2024-09-06T05:41:10+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=e96b4e479a3835d43d3c0bfd1028b5ac9d99cfec'/>
<id>urn:sha1:e96b4e479a3835d43d3c0bfd1028b5ac9d99cfec</id>
<content type='text'>
By moving `block_on` to an auxiliary crate, we avoid having to keep a separate
copy of it in every async test.

(This also incorporates some small tweaks to the headers in `await_ready.rs`.)
</content>
</entry>
<entry>
<title>coverage: Treat await similar to a macro</title>
<updated>2024-09-06T05:01:59+00:00</updated>
<author>
<name>Jonathan Conder</name>
<email>jono.conder@gmail.com</email>
</author>
<published>2024-09-05T22:25:25+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=25d183057edcf5d24ba0dcc8d5222a2a954aa80f'/>
<id>urn:sha1:25d183057edcf5d24ba0dcc8d5222a2a954aa80f</id>
<content type='text'>
Currently `await` is only counted towards coverage if the containing
function is suspended and resumed at least once. This is because it
expands to code which contains a branch on the discriminant of `Poll`.

By treating it like a branching macro (e.g. `assert!`), these
implementation details will be hidden from the coverage results.
</content>
</entry>
<entry>
<title>coverage: Extract hole spans from HIR instead of MIR</title>
<updated>2024-07-08T11:22:56+00:00</updated>
<author>
<name>Zalathar</name>
<email>Zalathar@users.noreply.github.com</email>
</author>
<published>2024-07-01T03:29:54+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=63c04f05e60ce27311fc1b874907188616beb558'/>
<id>urn:sha1:63c04f05e60ce27311fc1b874907188616beb558</id>
<content type='text'>
This makes it possible to treat more kinds of nested item/code as holes,
instead of being restricted to closures.
</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>Rollup merge of #120015 - Zalathar:format, r=dtolnay</title>
<updated>2024-01-21T05:38:37+00:00</updated>
<author>
<name>Nadrieril</name>
<email>Nadrieril@users.noreply.github.com</email>
</author>
<published>2024-01-21T05:38:37+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=e8678b1030c50173ff29d77eae215b1f8472571d'/>
<id>urn:sha1:e8678b1030c50173ff29d77eae215b1f8472571d</id>
<content type='text'>
coverage: Format all coverage tests with `rustfmt`

As suggested by &lt;https://github.com/rust-lang/rust/pull/119984#discussion_r1452856806&gt;.

Test files in `tests/` are normally ignored by `x fmt`, but sometimes those files end up being run through `rustfmt` anyway, either by `rust-analyzer` or by hand.

When that happens, it's annoying to have to manually revert formatting changes that are unrelated to the actual changes being made. So it's helpful for the tests in the repository to already have standard formatting beforehand.

However, there are several coverage tests that deliberately use non-standard formatting, so that line counts reveal more information about where code regions begin and end. In those cases, we can use `#[rustfmt::skip]` to prevent that code from being disturbed.

``@rustbot`` label +A-code-coverage
</content>
</entry>
<entry>
<title>Remove unnecessary `let`s and borrowing from `Waker::noop()` usage.</title>
<updated>2024-01-17T20:00:27+00:00</updated>
<author>
<name>Kevin Reid</name>
<email>kpreid@switchb.org</email>
</author>
<published>2024-01-15T00:25:43+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=c48cdfe8ee582e3e67c9ffc036d8046add812565'/>
<id>urn:sha1:c48cdfe8ee582e3e67c9ffc036d8046add812565</id>
<content type='text'>
`Waker::noop()` now returns a `&amp;'static Waker` reference, so it can be
passed directly to `Context` creation with no temporary lifetime issue.
</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 `Waker::noop` in async tests</title>
<updated>2023-12-15T06:17:20+00:00</updated>
<author>
<name>Zalathar</name>
<email>Zalathar@users.noreply.github.com</email>
</author>
<published>2023-12-15T05:38:27+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=5764ccc5e81527bd01db276fa2ec5dbdaaac3cf6'/>
<id>urn:sha1:5764ccc5e81527bd01db276fa2ec5dbdaaac3cf6</id>
<content type='text'>
</content>
</entry>
<entry>
<title>coverage: Migrate `tests/run-coverage` into `tests/coverage`</title>
<updated>2023-11-07T00:15:19+00:00</updated>
<author>
<name>Zalathar</name>
<email>Zalathar@users.noreply.github.com</email>
</author>
<published>2023-11-01T10:26:53+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=e9d04c5e2444526ffde83662f2d57fa35c772891'/>
<id>urn:sha1:e9d04c5e2444526ffde83662f2d57fa35c772891</id>
<content type='text'>
</content>
</entry>
</feed>
