Struct rustc_borrowck::BorrowckCtxt
[−]
[src]
pub struct BorrowckCtxt<'a, 'tcx: 'a> { // some fields omitted }
Unstable (
rustc_private
)Methods
impl<'a, 'tcx> BorrowckCtxt<'a, 'tcx>
[src]
fn is_subregion_of(&self, r_sub: Region, r_sup: Region) -> bool
fn report(&self, err: BckError<'tcx>)
fn report_use_of_moved_value(&self, use_span: Span, use_kind: MovedValueUseKind, lp: &LoanPath<'tcx>, the_move: &Move, moved_lp: &LoanPath<'tcx>, _param_env: &ParameterEnvironment<'tcx>)
fn report_partial_reinitialization_of_uninitialized_structure(&self, span: Span, lp: &LoanPath<'tcx>)
fn report_reassigned_immutable_variable(&self, span: Span, lp: &LoanPath<'tcx>, assign: &Assignment)
fn span_err(&self, s: Span, m: &str)
fn struct_span_err<S: Into<MultiSpan>>(&self, s: S, m: &str) -> DiagnosticBuilder<'a>
fn struct_span_err_with_code<S: Into<MultiSpan>>(&self, s: S, msg: &str, code: &str) -> DiagnosticBuilder<'a>
fn span_err_with_code<S: Into<MultiSpan>>(&self, s: S, msg: &str, code: &str)
fn bckerr_to_string(&self, err: &BckError<'tcx>) -> String
fn report_aliasability_violation(&self, span: Span, kind: AliasableViolationKind, cause: AliasableReason)
fn note_and_explain_bckerr(&self, db: &mut DiagnosticBuilder, err: BckError<'tcx>, error_span: Span)
fn append_loan_path_to_string(&self, loan_path: &LoanPath<'tcx>, out: &mut String)
fn append_autoderefd_loan_path_to_string(&self, loan_path: &LoanPath<'tcx>, out: &mut String)
fn loan_path_to_string(&self, loan_path: &LoanPath<'tcx>) -> String
fn cmt_to_string(&self, cmt: &cmt_<'tcx>) -> String
fn cmt_to_path_or_string(&self, cmt: &cmt<'tcx>) -> String
Trait Implementations
impl<'a, 'tcx, 'v> Visitor<'v> for BorrowckCtxt<'a, 'tcx>
[src]
fn visit_fn(&mut self, fk: FnKind<'v>, fd: &'v FnDecl, b: &'v Block, s: Span, id: NodeId)
fn visit_item(&mut self, item: &Item)
Visit the top-level item and (optionally) nested items. See visit_nested_item
for details. Read more
fn visit_trait_item(&mut self, ti: &TraitItem)
fn visit_impl_item(&mut self, ii: &ImplItem)
fn visit_nested_item(&mut self, id: ItemId)
Invoked when a nested item is encountered. By default, does nothing. If you want a deep walk, you need to override to fetch the item contents. But most of the time, it is easier (and better) to invoke Crate::visit_all_items
, which visits all items in the crate in some order (but doesn't respect nesting). Read more