Remove unused PlaceContext::NonUse(NonUseContext::Coverage)
This commit is contained in:
parent
683d1bcd40
commit
0016405073
@ -1150,8 +1150,6 @@ pub enum NonUseContext {
|
|||||||
StorageDead,
|
StorageDead,
|
||||||
/// User type annotation assertions for NLL.
|
/// User type annotation assertions for NLL.
|
||||||
AscribeUserTy,
|
AscribeUserTy,
|
||||||
/// Coverage code region and counter metadata.
|
|
||||||
Coverage,
|
|
||||||
/// The data of an user variable, for debug info.
|
/// The data of an user variable, for debug info.
|
||||||
VarDebugInfo,
|
VarDebugInfo,
|
||||||
}
|
}
|
||||||
|
@ -72,8 +72,7 @@ pub fn categorize(context: PlaceContext) -> Option<DefUse> {
|
|||||||
PlaceContext::MutatingUse(MutatingUseContext::Drop) =>
|
PlaceContext::MutatingUse(MutatingUseContext::Drop) =>
|
||||||
Some(DefUse::Drop),
|
Some(DefUse::Drop),
|
||||||
|
|
||||||
// Coverage and debug info are neither def nor use.
|
// Debug info is neither def nor use.
|
||||||
PlaceContext::NonUse(NonUseContext::Coverage) |
|
|
||||||
PlaceContext::NonUse(NonUseContext::VarDebugInfo) => None,
|
PlaceContext::NonUse(NonUseContext::VarDebugInfo) => None,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -97,7 +97,6 @@ fn visit_local(&mut self, &local: &Local, context: PlaceContext, _: Location) {
|
|||||||
PlaceContext::NonUse(
|
PlaceContext::NonUse(
|
||||||
NonUseContext::StorageLive
|
NonUseContext::StorageLive
|
||||||
| NonUseContext::AscribeUserTy
|
| NonUseContext::AscribeUserTy
|
||||||
| NonUseContext::Coverage
|
|
||||||
| NonUseContext::VarDebugInfo,
|
| NonUseContext::VarDebugInfo,
|
||||||
)
|
)
|
||||||
| PlaceContext::NonMutatingUse(
|
| PlaceContext::NonMutatingUse(
|
||||||
|
Loading…
Reference in New Issue
Block a user