Struct rustc::middle::expr_use_visitor::ExprUseVisitor [] [src]

pub struct ExprUseVisitor<'a, 'gcx: 'a + 'tcx, 'tcx: 'a> { /* 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?

Methods

impl<'a, 'tcx> ExprUseVisitor<'a, 'tcx, 'tcx>
[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?

Creates the ExprUseVisitor, configuring it with the various options provided:

  • delegate -- who receives the callbacks
  • param_env --- parameter environment for trait lookups (esp. pertaining to Copy)
  • region_scope_tree --- region scope tree for the code being analyzed
  • tables --- typeck results for the code being analyzed
  • rvalue_promotable_map --- if you care about rvalue promotion, then provide the map here (it can be computed with tcx.rvalue_promotable_map(def_id)). None means that rvalues will be given more conservative lifetimes.

See also with_infer, which is used during typeck.

impl<'a, 'gcx, 'tcx> ExprUseVisitor<'a, 'gcx, 'tcx>
[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?

🔬 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

Auto Trait Implementations

impl<'a, 'gcx, 'tcx> !Send for ExprUseVisitor<'a, 'gcx, 'tcx>

impl<'a, 'gcx, 'tcx> !Sync for ExprUseVisitor<'a, 'gcx, 'tcx>