Enum rustc_mir::borrow_check::LocalMutationIsAllowed[][src]

enum LocalMutationIsAllowed {
    Yes,
    ExceptUpvars,
    No,
}
🔬 This is a nightly-only experimental API. (rustc_private)

this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?

When checking permissions for a place access, this flag is used to indicate that an immutable local place can be mutated.

FIXME: @nikomatsakis suggested that this flag could be removed with the following modifications:

Variants

🔬 This is a nightly-only experimental API. (rustc_private)

this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?

🔬 This is a nightly-only experimental API. (rustc_private)

this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?

We want use of immutable upvars to cause a "write to immutable upvar" error, not an "reassignment" error.

🔬 This is a nightly-only experimental API. (rustc_private)

this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?

Trait Implementations

impl Copy for LocalMutationIsAllowed
[src]

impl Clone for LocalMutationIsAllowed
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl PartialEq for LocalMutationIsAllowed
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for LocalMutationIsAllowed
[src]

impl Debug for LocalMutationIsAllowed
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl Send for LocalMutationIsAllowed

impl Sync for LocalMutationIsAllowed