Skip to main content

Module borrowck

Module borrowck 

Source
Expand description

MIR borrow checker, which is used in diagnostics like unused_mut

Structsยง

BorrowRegion
BorrowckResult
MovedOutOfRef
PartiallyMoved

Enumsยง

MutabilityReason
Stores spans which implies that the local should be mutable.
ProjectionCase ๐Ÿ”’

Functionsยง

all_mir_bodies ๐Ÿ”’
borrow_regions ๐Ÿ”’
ever_initialized_map ๐Ÿ”’
Returns a map from basic blocks to the set of locals that might be ever initialized before the start of the block. Only StorageDead can remove something from this map, and we ignore Uninit and drop and similar after initialization.
moved_out_of_ref ๐Ÿ”’
mutability_of_locals ๐Ÿ”’
partially_moved ๐Ÿ”’
place_case ๐Ÿ”’
push_mut_span ๐Ÿ”’
record_usage ๐Ÿ”’
record_usage_for_operand ๐Ÿ”’