[−][src]Struct rustc_borrowck::borrowck::move_data::MoveData
🔬 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
paths: RefCell<Vec<MovePath<'tcx>>>
🔬 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?
Move paths. See section "Move paths" in README.md.
path_map: RefCell<FxHashMap<Rc<LoanPath<'tcx>>, MovePathIndex>>
🔬 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?
Cache of loan path to move path index, for easy lookup.
moves: RefCell<Vec<Move>>
🔬 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?
Each move or uninitialized variable gets an entry here.
var_assignments: RefCell<Vec<Assignment>>
🔬 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?
Assignments to a variable, like x = foo. These are assigned
bits for dataflow, since we must track them to ensure that
immutable variables are assigned at most once along each path.
path_assignments: RefCell<Vec<Assignment>>
🔬 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?
Assignments to a path, like x.f = foo. These are not
assigned dataflow bits, but we track them because they still
kill move bits.
Methods
impl<'a, 'tcx> MoveData<'tcx>[src]
impl<'a, 'tcx> MoveData<'tcx>pub fn is_empty(&self) -> bool[src]
pub fn is_empty(&self) -> bool🔬 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?
return true if there are no trackable assignments or moves in this move data - that means that there is nothing that could cause a borrow error.
pub fn path_loan_path(&self, index: MovePathIndex) -> Rc<LoanPath<'tcx>>[src]
pub fn path_loan_path(&self, index: MovePathIndex) -> Rc<LoanPath<'tcx>>🔬 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?
fn path_parent(&self, index: MovePathIndex) -> MovePathIndex[src]
fn path_parent(&self, index: MovePathIndex) -> MovePathIndex🔬 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?
fn path_first_move(&self, index: MovePathIndex) -> MoveIndex[src]
fn path_first_move(&self, index: MovePathIndex) -> MoveIndex🔬 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?
fn path_first_child(&self, index: MovePathIndex) -> MovePathIndex[src]
fn path_first_child(&self, index: MovePathIndex) -> MovePathIndex🔬 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 index of first child, or InvalidMovePathIndex if
index is leaf.
fn path_next_sibling(&self, index: MovePathIndex) -> MovePathIndex[src]
fn path_next_sibling(&self, index: MovePathIndex) -> MovePathIndex🔬 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?
fn set_path_first_move(&self, index: MovePathIndex, first_move: MoveIndex)[src]
fn set_path_first_move(&self, index: MovePathIndex, first_move: MoveIndex)🔬 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?
fn set_path_first_child(&self, index: MovePathIndex, first_child: MovePathIndex)[src]
fn set_path_first_child(&self, index: MovePathIndex, first_child: MovePathIndex)🔬 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?
fn move_next_move(&self, index: MoveIndex) -> MoveIndex[src]
fn move_next_move(&self, index: MoveIndex) -> MoveIndex🔬 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?
Type safe indexing operator
fn is_var_path(&self, index: MovePathIndex) -> bool[src]
fn is_var_path(&self, index: MovePathIndex) -> bool🔬 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?
True if index refers to a variable
pub fn move_path(
&self,
tcx: TyCtxt<'a, 'tcx, 'tcx>,
lp: Rc<LoanPath<'tcx>>
) -> MovePathIndex[src]
pub fn move_path(
&self,
tcx: TyCtxt<'a, 'tcx, 'tcx>,
lp: Rc<LoanPath<'tcx>>
) -> MovePathIndex🔬 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 existing move path index for lp, if any, and otherwise adds a new index for
lp and any of its base paths that do not yet have an index.
fn existing_move_path(&self, lp: &Rc<LoanPath<'tcx>>) -> Option<MovePathIndex>[src]
fn existing_move_path(&self, lp: &Rc<LoanPath<'tcx>>) -> Option<MovePathIndex>🔬 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?
fn existing_base_paths(&self, lp: &Rc<LoanPath<'tcx>>) -> Vec<MovePathIndex>[src]
fn existing_base_paths(&self, lp: &Rc<LoanPath<'tcx>>) -> Vec<MovePathIndex>🔬 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?
fn add_existing_base_paths(
&self,
lp: &Rc<LoanPath<'tcx>>,
result: &mut Vec<MovePathIndex>
)[src]
fn add_existing_base_paths(
&self,
lp: &Rc<LoanPath<'tcx>>,
result: &mut Vec<MovePathIndex>
)🔬 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?
Adds any existing move path indices for lp and any base paths of lp to result, but
does not add new move paths
pub fn add_move(
&self,
tcx: TyCtxt<'a, 'tcx, 'tcx>,
orig_lp: Rc<LoanPath<'tcx>>,
id: ItemLocalId,
kind: MoveKind
)[src]
pub fn add_move(
&self,
tcx: TyCtxt<'a, 'tcx, 'tcx>,
orig_lp: Rc<LoanPath<'tcx>>,
id: ItemLocalId,
kind: MoveKind
)🔬 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?
Adds a new move entry for a move of lp that occurs at location id with kind kind.
fn add_move_helper(
&self,
tcx: TyCtxt<'a, 'tcx, 'tcx>,
lp: Rc<LoanPath<'tcx>>,
id: ItemLocalId,
kind: MoveKind
)[src]
fn add_move_helper(
&self,
tcx: TyCtxt<'a, 'tcx, 'tcx>,
lp: Rc<LoanPath<'tcx>>,
id: ItemLocalId,
kind: MoveKind
)🔬 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?
pub fn add_assignment(
&self,
tcx: TyCtxt<'a, 'tcx, 'tcx>,
lp: Rc<LoanPath<'tcx>>,
assign_id: ItemLocalId,
span: Span
)[src]
pub fn add_assignment(
&self,
tcx: TyCtxt<'a, 'tcx, 'tcx>,
lp: Rc<LoanPath<'tcx>>,
assign_id: ItemLocalId,
span: Span
)🔬 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?
Adds a new record for an assignment to lp that occurs at location id with the given
span.
fn add_assignment_helper(
&self,
tcx: TyCtxt<'a, 'tcx, 'tcx>,
lp: Rc<LoanPath<'tcx>>,
assign_id: ItemLocalId,
span: Span
)[src]
fn add_assignment_helper(
&self,
tcx: TyCtxt<'a, 'tcx, 'tcx>,
lp: Rc<LoanPath<'tcx>>,
assign_id: ItemLocalId,
span: Span
)🔬 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?
fn add_gen_kills(
&self,
bccx: &BorrowckCtxt<'a, 'tcx>,
dfcx_moves: &mut DataFlowContext<'a, 'tcx, MoveDataFlowOperator>,
dfcx_assign: &mut DataFlowContext<'a, 'tcx, AssignDataFlowOperator>
)[src]
fn add_gen_kills(
&self,
bccx: &BorrowckCtxt<'a, 'tcx>,
dfcx_moves: &mut DataFlowContext<'a, 'tcx, MoveDataFlowOperator>,
dfcx_assign: &mut DataFlowContext<'a, 'tcx, AssignDataFlowOperator>
)🔬 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?
Adds the gen/kills for the various moves and
assignments into the provided data flow contexts.
Moves are generated by moves and killed by assignments and
scoping. Assignments are generated by assignment to variables and
killed by scoping. See README.md for more details.
fn each_base_path<F>(&self, index: MovePathIndex, f: F) -> bool where
F: FnMut(MovePathIndex) -> bool, [src]
fn each_base_path<F>(&self, index: MovePathIndex, f: F) -> bool where
F: FnMut(MovePathIndex) -> bool, 🔬 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?
fn each_extending_path_<F>(&self, index: MovePathIndex, f: &mut F) -> bool where
F: FnMut(MovePathIndex) -> bool, [src]
fn each_extending_path_<F>(&self, index: MovePathIndex, f: &mut F) -> bool where
F: FnMut(MovePathIndex) -> bool, 🔬 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?
fn each_extending_path<F>(&self, index: MovePathIndex, f: F) -> bool where
F: FnMut(MovePathIndex) -> bool, [src]
fn each_extending_path<F>(&self, index: MovePathIndex, f: F) -> bool where
F: FnMut(MovePathIndex) -> bool, 🔬 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?
fn each_applicable_move<F>(&self, index0: MovePathIndex, f: F) -> bool where
F: FnMut(MoveIndex) -> bool, [src]
fn each_applicable_move<F>(&self, index0: MovePathIndex, f: F) -> bool where
F: FnMut(MoveIndex) -> bool, 🔬 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?
fn kill_moves(
&self,
path: MovePathIndex,
kill_id: ItemLocalId,
kill_kind: KillFrom,
dfcx_moves: &mut DataFlowContext<'a, 'tcx, MoveDataFlowOperator>
)[src]
fn kill_moves(
&self,
path: MovePathIndex,
kill_id: ItemLocalId,
kill_kind: KillFrom,
dfcx_moves: &mut DataFlowContext<'a, 'tcx, MoveDataFlowOperator>
)🔬 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
Blanket Implementations
impl<T> From for T[src]
impl<T> From for Timpl<T, U> Into for T where
U: From<T>, [src]
impl<T, U> Into for T where
U: From<T>, impl<T, U> TryFrom for T where
T: From<U>, [src]
impl<T, U> TryFrom for T where
T: From<U>, type Error = !
try_from)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>try_from)Performs the conversion.
impl<T> Borrow for T where
T: ?Sized, [src]
impl<T> Borrow for T where
T: ?Sized, ⓘImportant traits for &'a mut Rfn borrow(&self) -> &T[src]
fn borrow(&self) -> &TImmutably borrows from an owned value. Read more
impl<T, U> TryInto for T where
U: TryFrom<T>, [src]
impl<T, U> TryInto for T where
U: TryFrom<T>, type Error = <U as TryFrom<T>>::Error
try_from)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>try_from)Performs the conversion.
impl<T> BorrowMut for T where
T: ?Sized, [src]
impl<T> BorrowMut for T where
T: ?Sized, ⓘImportant traits for &'a mut Rfn borrow_mut(&mut self) -> &mut T[src]
fn borrow_mut(&mut self) -> &mut TMutably borrows from an owned value. Read more
impl<T> Any for T where
T: 'static + ?Sized, [src]
impl<T> Any for T where
T: 'static + ?Sized, fn get_type_id(&self) -> TypeId[src]
fn get_type_id(&self) -> TypeId🔬 This is a nightly-only experimental API. (get_type_id)
this method will likely be replaced by an associated static
Gets the TypeId of self. Read more
impl<E> SpecializationError for E[src]
impl<E> SpecializationError for Efn not_found<S, T>(trait_name: &'static str, method_name: &'static str) -> E where
T: ?Sized, [src]
fn not_found<S, T>(trait_name: &'static str, method_name: &'static str) -> E where
T: ?Sized, 🔬 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 an error for a missing method specialization. Defaults to panicking with type, trait & method names. S is the encoder/decoder state type, T is the type being encoded/decoded, and the arguments are the names of the trait and method that should've been overridden. Read more
impl<T> Erased for T[src]
impl<T> Erased for Timpl<T> Send for T where
T: ?Sized, [src]
impl<T> Send for T where
T: ?Sized, impl<T> Sync for T where
T: ?Sized, [src]
impl<T> Sync for T where
T: ?Sized, impl<T> Erased for T
impl<T> Erased for Timpl<T> MaybeResult for T[src]
impl<T> MaybeResult for Tfn from_ok(x: T) -> T[src]
fn from_ok(x: T) -> 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?
fn map_same<F>(self, f: F) -> T where
F: FnOnce(T) -> T, [src]
fn map_same<F>(self, f: F) -> T where
F: FnOnce(T) -> 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?
impl<'a, T> Captures for T where
T: ?Sized, [src]
impl<'a, T> Captures for T where
T: ?Sized,