rust/compiler/rustc_middle/src/mir
Zalathar c479bc7f3b coverage: Attach an optional FunctionCoverageInfo to mir::Body
This allows coverage information to be attached to the function as a whole when
appropriate, instead of being smuggled through coverage statements in the
function's basic blocks.

As an example, this patch moves the `function_source_hash` value out of
individual `CoverageKind::Counter` statements and into the per-function info.

When synthesizing unused functions for coverage purposes, the absence of this
info is taken to indicate that a function was not eligible for coverage and
should not be synthesized.
2023-10-18 21:20:29 +11:00
..
interpret Auto merge of #114330 - RalfJung:dagling-ptr-deref, r=oli-obk 2023-10-16 12:40:16 +00:00
basic_blocks.rs Remove deleted docs + better link together MIR traversing docs 2023-09-29 19:16:02 +00:00
consts.rs fix fast-path for try_eval_scalar_int 2023-10-05 22:00:24 +02:00
coverage.rs coverage: Attach an optional FunctionCoverageInfo to mir::Body 2023-10-18 21:20:29 +11:00
generic_graph.rs inline format!() args up to and including rustc_middle 2023-07-30 13:18:33 +02:00
generic_graphviz.rs inline format!() args up to and including rustc_middle 2023-07-30 13:18:33 +02:00
graphviz.rs inline format!() args up to and including rustc_middle 2023-07-30 13:18:33 +02:00
mod.rs coverage: Attach an optional FunctionCoverageInfo to mir::Body 2023-10-18 21:20:29 +11:00
mono.rs treat host effect params as erased generics in codegen 2023-09-14 07:34:35 +00:00
patch.rs Format all the let chains in compiler 2023-10-13 08:59:36 +00:00
pretty.rs Auto merge of #115301 - Zalathar:regions-vec, r=davidtwco 2023-10-03 18:36:21 +00:00
query.rs Remove span from BrAnon. 2023-09-24 09:46:55 +00:00
spanview.rs sync printing of MIR terminators with their new names (and dedup some to-str logic) 2023-08-20 15:52:40 +02:00
statement.rs Add docs, remove code, change subtyper code 2023-10-02 23:39:44 +03:00
syntax.rs update MIR place semantics UB comment 2023-10-15 18:13:33 +02:00
tcx.rs have better explanation for relate_types 2023-10-02 23:39:45 +03:00
terminator.rs organize mir pretty.rs and move more things into it; move statement-related things out of mir/mod.rs 2023-09-19 11:06:32 +02:00
traversal.rs Remove deleted docs + better link together MIR traversing docs 2023-09-29 19:16:02 +00:00
type_foldable.rs Remove more unused Lift impls. 2023-09-18 09:37:10 +10:00
visit.rs Rollup merge of #116277 - RalfJung:post-mono, r=oli-obk 2023-10-06 16:37:46 -07:00