Struct rustc::ty::maps::OnDiskCache [] [src]

pub struct OnDiskCache<'sess> { /* fields omitted */ }
🔬 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?

OnDiskCache provides an interface to incr. comp. data cached from the previous compilation session. This data will eventually include the results of a few selected queries (like typeck_tables_of and mir_optimized) and any diagnostics that have been emitted during a query.

Methods

impl<'sess> OnDiskCache<'sess>
[src]

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

Create a new OnDiskCache instance from the serialized data in data.

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

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

Important traits for Vec<u8>
[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?

Load a diagnostic emitted during the previous compilation session.

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

Store a diagnostic emitted during the current compilation session. Anything stored like this will be available via load_diagnostics in the next compilation session.

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

Returns the cached query result if there is something in the cache for the given SerializedDepNodeIndex. Otherwise returns None.

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

Store a diagnostic emitted during computation of an anonymous query. Since many anonymous queries can share the same DepNode, we aggregate them -- as opposed to regular queries where we assume that there is a 1:1 relationship between query-key and DepNode.