We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9325a25 commit 4ec76dfCopy full SHA for 4ec76df
compiler/rustc_middle/src/mir/visit.rs
@@ -1252,6 +1252,9 @@ pub enum NonMutatingUseContext {
1252
/// AddressOf for *const pointer.
1253
AddressOf,
1254
/// PlaceMention statement.
1255
+ ///
1256
+ /// This statement is executed as a check that the `Place` is live without reading from it,
1257
+ /// so it must be considered as a non-mutating use.
1258
PlaceMention,
1259
/// Used as base for another place, e.g., `x` in `x.y`. Will not mutate the place.
1260
/// For example, the projection `x.y` is not marked as a mutation in these cases:
0 commit comments