Struct rustc_mir::build::scope::CachedBlock[][src]

pub(crate) struct CachedBlock {
    unwind: Option<BasicBlock>,
    generator_drop: Option<BasicBlock>,
}
🔬 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?

Fields

🔬 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?

The cached block for the cleanups-on-diverge path. This block contains code to run the current drop and all the preceding drops (i.e. those having lower index in Drop’s Scope drop array)

🔬 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?

The cached block for unwinds during cleanups-on-generator-drop path

This is split from the standard unwind path here to prevent drop elaboration from creating drop flags that would have to be captured by the generator. I'm not sure how important this optimization is, but it is here.

Methods

impl CachedBlock
[src]

🔬 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?

🔬 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 Debug for CachedBlock
[src]

Formats the value using the given formatter. Read more

impl Default for CachedBlock
[src]

Returns the "default value" for a type. Read more

impl Clone for CachedBlock
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for CachedBlock
[src]

Auto Trait Implementations

impl Send for CachedBlock

impl Sync for CachedBlock