1
Fork 0

Dont ICE when computing coverage of synthetic async closure body

This commit is contained in:
Michael Goulet 2024-10-16 16:09:41 -04:00 committed by Zalathar
parent e7c0d27507
commit cdbf28af76
7 changed files with 102 additions and 19 deletions

View file

@ -569,6 +569,7 @@ rustc_queries! {
/// either `#[coverage(on)]` or no coverage attribute was found.
query coverage_attr_on(key: LocalDefId) -> bool {
desc { |tcx| "checking for `#[coverage(..)]` on `{}`", tcx.def_path_str(key) }
feedable
}
/// Summarizes coverage IDs inserted by the `InstrumentCoverage` MIR pass