Module rustc::middle::borrowckExperimental [-]  [+] [src]

See doc.rs for a thorough explanation of the borrow checker

Reexports

pub use self::LoanPath::*;
pub use self::LoanPathElem::*;
pub use self::bckerr_code::*;
pub use self::AliasableViolationKind::*;
pub use self::MovedValueUseKind::*;

Modules

check_loans
doc

The Borrow Checker

gather_loans
graphviz

This module provides linkage between rustc::middle::graph and libgraphviz traits, specialized to attaching borrowck analysis data to rendered labels.

move_data

Data structures used for tracking moves. Please see the extensive comments in the section "Moves and initialization" and in doc.rs.

Structs

AnalysisData

Collection of conclusions determined via borrow checker analyses.

BckError
BorrowckCtxt
FnPartsWithCFG

This and a ty::ctxt is all you need to run the dataflow analyses used in the borrow checker.

Loan

Record of a loan that was issued.

LoanDataFlowOperator

Enums

AliasableViolationKind
LoanPath
LoanPathElem
MovedValueUseKind
bckerr_code

Functions

build_borrowck_dataflow_data_for_fn

Accessor for introspective clients inspecting AnalysisData and the BorrowckCtxt itself , e.g. the flowgraph visualizer.

check_crate
closure_to_block
opt_loan_path

Computes the LoanPath (if any) for a cmt. Note that this logic is somewhat duplicated in the method compute() found in gather_loans::restrictions, which allows it to share common loan path pieces as it traverses the CMT.

Type Definitions

BckResult
LoanDataFlow