[−][src]Module rustc_mir::borrow_check::diagnostics::mutability_errors

Enums

AccessKind

Functions

annotate_struct_field

Adds a suggestion to a struct definition given a field access to a local. This function expects the local to be a reference to a struct in order to produce a suggestion.

is_closure_or_generator
mut_borrow_of_mutable_ref
suggest_ampmut
suggest_ampmut_self
suggest_ref_mut

If possible, suggest replacing ref with ref mut.