Expand comment on NonMutatingUseContext.
This commit is contained in:
parent
9325a254f0
commit
4ec76df4a9
1 changed files with 3 additions and 0 deletions
|
|
@ -1252,6 +1252,9 @@ pub enum NonMutatingUseContext {
|
|||
/// AddressOf for *const pointer.
|
||||
AddressOf,
|
||||
/// PlaceMention statement.
|
||||
///
|
||||
/// This statement is executed as a check that the `Place` is live without reading from it,
|
||||
/// so it must be considered as a non-mutating use.
|
||||
PlaceMention,
|
||||
/// Used as base for another place, e.g., `x` in `x.y`. Will not mutate the place.
|
||||
/// For example, the projection `x.y` is not marked as a mutation in these cases:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue