rust/compiler/rustc_mir_transform/src/coverage
Jonathan Conder 25d183057e coverage: Treat await similar to a macro
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.
2024-09-06 17:01:59 +12:00
..
spans coverage: Treat await similar to a macro 2024-09-06 17:01:59 +12:00
counters.rs Remove #[macro_use] extern crate tracing from rustc_mir_transform. 2024-08-30 10:01:34 +10:00
graph.rs Remove #[macro_use] extern crate tracing from rustc_mir_transform. 2024-08-30 10:01:34 +10:00
mappings.rs coverage: Restrict ExpressionUsed simplification to Code mappings 2024-07-15 20:54:28 +10:00
mod.rs Move MirPass to rustc_mir_transform. 2024-09-03 16:03:46 +10:00
query.rs Remove #[macro_use] extern crate tracing from rustc_mir_transform. 2024-08-30 10:01:34 +10:00
spans.rs coverage: Treat await similar to a macro 2024-09-06 17:01:59 +12:00
tests.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00
unexpand.rs coverage: Treat await similar to a macro 2024-09-06 17:01:59 +12:00