Struct rustc_metadata::index_builder::Untracked[][src]

pub struct Untracked<T>(pub T);
🔬 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?

Leaks access to a value of type T without any tracking. This is suitable for ambiguous types like usize, which could represent tracked data (e.g., if you read it out of a HIR node) or might not (e.g., if it's an index). Adding in an Untracked is an assertion, essentially, that the data does not need to be tracked (or that read edges will be added by some other way).

A good idea is to add to each use of Untracked an explanation of why this value is ok.

Trait Implementations

impl<T> DepGraphRead for Untracked<T>
[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?

Auto Trait Implementations

impl<T> Send for Untracked<T> where
    T: Send

impl<T> Sync for Untracked<T> where
    T: Sync