Skip to content

Commit 32714eb

Browse files
authoredSep 9, 2020
Rollup merge of #76523 - tmiasko:non-use-context-coverage, r=wesleywiser
Remove unused PlaceContext::NonUse(NonUseContext::Coverage) r? @richkadel / @wesleywiser
2 parents 09c6149 + 0016405 commit 32714eb

File tree

3 files changed

+1
-5
lines changed

3 files changed

+1
-5
lines changed
 

‎compiler/rustc_middle/src/mir/visit.rs

-2
Original file line numberDiff line numberDiff line change
@@ -1150,8 +1150,6 @@ pub enum NonUseContext {
11501150
StorageDead,
11511151
/// User type annotation assertions for NLL.
11521152
AscribeUserTy,
1153-
/// Coverage code region and counter metadata.
1154-
Coverage,
11551153
/// The data of an user variable, for debug info.
11561154
VarDebugInfo,
11571155
}

‎compiler/rustc_mir/src/borrow_check/def_use.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,7 @@ pub fn categorize(context: PlaceContext) -> Option<DefUse> {
7272
PlaceContext::MutatingUse(MutatingUseContext::Drop) =>
7373
Some(DefUse::Drop),
7474

75-
// Coverage and debug info are neither def nor use.
76-
PlaceContext::NonUse(NonUseContext::Coverage) |
75+
// Debug info is neither def nor use.
7776
PlaceContext::NonUse(NonUseContext::VarDebugInfo) => None,
7877
}
7978
}

‎compiler/rustc_mir/src/dataflow/impls/init_locals.rs

-1
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,6 @@ where
9797
PlaceContext::NonUse(
9898
NonUseContext::StorageLive
9999
| NonUseContext::AscribeUserTy
100-
| NonUseContext::Coverage
101100
| NonUseContext::VarDebugInfo,
102101
)
103102
| PlaceContext::NonMutatingUse(

0 commit comments

Comments
 (0)