We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b34a8a2 commit 45f2a1aCopy full SHA for 45f2a1a
compiler/rustc_borrowck/src/def_use.rs
@@ -72,8 +72,10 @@ pub fn categorize(context: PlaceContext) -> Option<DefUse> {
72
PlaceContext::MutatingUse(MutatingUseContext::Drop) =>
73
Some(DefUse::Drop),
74
75
+ // This statement exists to help unsafeck. It does not require the place to be live.
76
+ PlaceContext::NonUse(NonUseContext::PlaceMention) => None,
77
// Debug info is neither def nor use.
- PlaceContext::NonUse(NonUseContext::PlaceMention | NonUseContext::VarDebugInfo) => None,
78
+ PlaceContext::NonUse(NonUseContext::VarDebugInfo) => None,
79
80
PlaceContext::MutatingUse(MutatingUseContext::Deinit | MutatingUseContext::SetDiscriminant) => {
81
bug!("These statements are not allowed in this MIR phase")
0 commit comments