Struct rustc_borrowck::borrowck::BorrowckCtxt [−][src]
pub struct BorrowckCtxt<'a, 'tcx: 'a> { tcx: TyCtxt<'a, 'tcx, 'tcx>, tables: &'a TypeckTables<'tcx>, region_scope_tree: Lrc<ScopeTree>, owner_def_id: DefId, body: &'tcx Body, used_mut_nodes: RefCell<FxHashSet<HirId>>, }
🔬 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
tcx: TyCtxt<'a, 'tcx, '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?
tables: &'a TypeckTables<'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?
region_scope_tree: Lrc<ScopeTree>
🔬 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?
owner_def_id: DefId
🔬 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?
body: &'tcx Body
🔬 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?
used_mut_nodes: RefCell<FxHashSet<HirId>>
🔬 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?
Methods
impl<'a, 'tcx> BorrowckCtxt<'a, 'tcx>
[src]
impl<'a, 'tcx> BorrowckCtxt<'a, 'tcx>
pub fn is_subregion_of(&self, r_sub: Region<'tcx>, r_sup: Region<'tcx>) -> bool
[src]
pub fn is_subregion_of(&self, r_sub: Region<'tcx>, r_sup: Region<'tcx>) -> 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?
pub fn report(&self, err: BckError<'a, 'tcx>)
[src]
pub fn report(&self, err: BckError<'a, '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?
pub 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: ParamEnv<'tcx>
)
[src]
pub 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: ParamEnv<'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?
pub fn report_partial_reinitialization_of_uninitialized_structure(
&self,
span: Span,
lp: &LoanPath<'tcx>
)
[src]
pub fn report_partial_reinitialization_of_uninitialized_structure(
&self,
span: Span,
lp: &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?
pub fn report_reassigned_immutable_variable(
&self,
span: Span,
lp: &LoanPath<'tcx>,
assign: &Assignment
)
[src]
pub fn report_reassigned_immutable_variable(
&self,
span: Span,
lp: &LoanPath<'tcx>,
assign: &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?
pub fn struct_span_err_with_code<S: Into<MultiSpan>>(
&self,
s: S,
msg: &str,
code: DiagnosticId
) -> DiagnosticBuilder<'a>
[src]
pub fn struct_span_err_with_code<S: Into<MultiSpan>>(
&self,
s: S,
msg: &str,
code: DiagnosticId
) -> DiagnosticBuilder<'a>
🔬 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 span_err_with_code<S: Into<MultiSpan>>(
&self,
s: S,
msg: &str,
code: DiagnosticId
)
[src]
pub fn span_err_with_code<S: Into<MultiSpan>>(
&self,
s: S,
msg: &str,
code: DiagnosticId
)
🔬 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 report_bckerr(&self, err: &BckError<'a, 'tcx>)
[src]
fn report_bckerr(&self, err: &BckError<'a, '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?
pub fn report_aliasability_violation(
&self,
span: Span,
kind: AliasableViolationKind,
cause: AliasableReason,
cmt: &cmt_<'tcx>
)
[src]
pub fn report_aliasability_violation(
&self,
span: Span,
kind: AliasableViolationKind,
cause: AliasableReason,
cmt: &cmt_<'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 suggest_mut_for_immutable(
&self,
pty: &Ty,
is_implicit_self: bool
) -> Option<String>
[src]
fn suggest_mut_for_immutable(
&self,
pty: &Ty,
is_implicit_self: bool
) -> Option<String>
🔬 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?
Given a type, if it is an immutable reference, return a suggestion to make it mutable
fn local_binding_mode(&self, node_id: NodeId) -> BindingMode
[src]
fn local_binding_mode(&self, node_id: NodeId) -> BindingMode
🔬 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 local_ty(&self, node_id: NodeId) -> (Option<&Ty>, bool)
[src]
fn local_ty(&self, node_id: NodeId) -> (Option<&Ty>, 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 note_immutability_blame(
&self,
db: &mut DiagnosticBuilder,
blame: Option<ImmutabilityBlame>
)
[src]
fn note_immutability_blame(
&self,
db: &mut DiagnosticBuilder,
blame: Option<ImmutabilityBlame>
)
🔬 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 report_out_of_scope_escaping_closure_capture(
&self,
err: &BckError<'a, 'tcx>,
capture_span: Span
)
[src]
fn report_out_of_scope_escaping_closure_capture(
&self,
err: &BckError<'a, 'tcx>,
capture_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 region_end_span(&self, region: Region<'tcx>) -> Option<Span>
[src]
fn region_end_span(&self, region: Region<'tcx>) -> Option<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 note_and_explain_mutbl_error(
&self,
db: &mut DiagnosticBuilder,
err: &BckError<'a, 'tcx>,
error_span: &Span
)
[src]
fn note_and_explain_mutbl_error(
&self,
db: &mut DiagnosticBuilder,
err: &BckError<'a, 'tcx>,
error_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?
pub fn append_loan_path_to_string(
&self,
loan_path: &LoanPath<'tcx>,
out: &mut String
)
[src]
pub fn append_loan_path_to_string(
&self,
loan_path: &LoanPath<'tcx>,
out: &mut String
)
🔬 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 append_autoderefd_loan_path_to_string(
&self,
loan_path: &LoanPath<'tcx>,
out: &mut String
)
[src]
pub fn append_autoderefd_loan_path_to_string(
&self,
loan_path: &LoanPath<'tcx>,
out: &mut String
)
🔬 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 loan_path_to_string(&self, loan_path: &LoanPath<'tcx>) -> String
[src]
pub fn loan_path_to_string(&self, loan_path: &LoanPath<'tcx>) -> String
🔬 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 cmt_to_string(&self, cmt: &cmt_<'tcx>) -> String
[src]
pub fn cmt_to_string(&self, cmt: &cmt_<'tcx>) -> String
🔬 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 cmt_to_path_or_string(&self, cmt: &cmt_<'tcx>) -> String
[src]
pub fn cmt_to_path_or_string(&self, cmt: &cmt_<'tcx>) -> String
🔬 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
impl<'a, 'b, 'tcx: 'b> BorrowckErrors<'a> for &'a BorrowckCtxt<'b, 'tcx>
[src]
impl<'a, 'b, 'tcx: 'b> BorrowckErrors<'a> for &'a BorrowckCtxt<'b, 'tcx>
fn struct_span_err_with_code<S: Into<MultiSpan>>(
self,
sp: S,
msg: &str,
code: DiagnosticId
) -> DiagnosticBuilder<'a>
[src]
fn struct_span_err_with_code<S: Into<MultiSpan>>(
self,
sp: S,
msg: &str,
code: DiagnosticId
) -> DiagnosticBuilder<'a>
🔬 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 struct_span_err<S: Into<MultiSpan>>(
self,
sp: S,
msg: &str
) -> DiagnosticBuilder<'a>
[src]
fn struct_span_err<S: Into<MultiSpan>>(
self,
sp: S,
msg: &str
) -> DiagnosticBuilder<'a>
🔬 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 cancel_if_wrong_origin(
self,
diag: DiagnosticBuilder<'a>,
o: Origin
) -> DiagnosticBuilder<'a>
[src]
fn cancel_if_wrong_origin(
self,
diag: DiagnosticBuilder<'a>,
o: Origin
) -> DiagnosticBuilder<'a>
🔬 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?
Cancels the given error if we shouldn't emit errors for a given origin in the current mode. Read more
fn cannot_move_when_borrowed(
self,
span: Span,
desc: &str,
o: Origin
) -> DiagnosticBuilder<'cx>
[src]
fn cannot_move_when_borrowed(
self,
span: Span,
desc: &str,
o: Origin
) -> DiagnosticBuilder<'cx>
🔬 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 cannot_use_when_mutably_borrowed(
self,
span: Span,
desc: &str,
borrow_span: Span,
borrow_desc: &str,
o: Origin
) -> DiagnosticBuilder<'cx>
[src]
fn cannot_use_when_mutably_borrowed(
self,
span: Span,
desc: &str,
borrow_span: Span,
borrow_desc: &str,
o: Origin
) -> DiagnosticBuilder<'cx>
🔬 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 cannot_act_on_uninitialized_variable(
self,
span: Span,
verb: &str,
desc: &str,
o: Origin
) -> DiagnosticBuilder<'cx>
[src]
fn cannot_act_on_uninitialized_variable(
self,
span: Span,
verb: &str,
desc: &str,
o: Origin
) -> DiagnosticBuilder<'cx>
🔬 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 cannot_mutably_borrow_multiply(
self,
new_loan_span: Span,
desc: &str,
opt_via: &str,
old_loan_span: Span,
old_opt_via: &str,
old_load_end_span: Option<Span>,
o: Origin
) -> DiagnosticBuilder<'cx>
[src]
fn cannot_mutably_borrow_multiply(
self,
new_loan_span: Span,
desc: &str,
opt_via: &str,
old_loan_span: Span,
old_opt_via: &str,
old_load_end_span: Option<Span>,
o: Origin
) -> DiagnosticBuilder<'cx>
🔬 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 cannot_uniquely_borrow_by_two_closures(
self,
new_loan_span: Span,
desc: &str,
old_loan_span: Span,
old_load_end_span: Option<Span>,
o: Origin
) -> DiagnosticBuilder<'cx>
[src]
fn cannot_uniquely_borrow_by_two_closures(
self,
new_loan_span: Span,
desc: &str,
old_loan_span: Span,
old_load_end_span: Option<Span>,
o: Origin
) -> DiagnosticBuilder<'cx>
🔬 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 cannot_uniquely_borrow_by_one_closure(
self,
new_loan_span: Span,
desc_new: &str,
opt_via: &str,
old_loan_span: Span,
noun_old: &str,
old_opt_via: &str,
previous_end_span: Option<Span>,
o: Origin
) -> DiagnosticBuilder<'cx>
[src]
fn cannot_uniquely_borrow_by_one_closure(
self,
new_loan_span: Span,
desc_new: &str,
opt_via: &str,
old_loan_span: Span,
noun_old: &str,
old_opt_via: &str,
previous_end_span: Option<Span>,
o: Origin
) -> DiagnosticBuilder<'cx>
🔬 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 cannot_reborrow_already_uniquely_borrowed(
self,
new_loan_span: Span,
desc_new: &str,
opt_via: &str,
kind_new: &str,
old_loan_span: Span,
old_opt_via: &str,
previous_end_span: Option<Span>,
o: Origin
) -> DiagnosticBuilder<'cx>
[src]
fn cannot_reborrow_already_uniquely_borrowed(
self,
new_loan_span: Span,
desc_new: &str,
opt_via: &str,
kind_new: &str,
old_loan_span: Span,
old_opt_via: &str,
previous_end_span: Option<Span>,
o: Origin
) -> DiagnosticBuilder<'cx>
🔬 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 cannot_reborrow_already_borrowed(
self,
span: Span,
desc_new: &str,
msg_new: &str,
kind_new: &str,
old_span: Span,
noun_old: &str,
kind_old: &str,
msg_old: &str,
old_load_end_span: Option<Span>,
o: Origin
) -> DiagnosticBuilder<'cx>
[src]
fn cannot_reborrow_already_borrowed(
self,
span: Span,
desc_new: &str,
msg_new: &str,
kind_new: &str,
old_span: Span,
noun_old: &str,
kind_old: &str,
msg_old: &str,
old_load_end_span: Option<Span>,
o: Origin
) -> DiagnosticBuilder<'cx>
🔬 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 cannot_assign_to_borrowed(
self,
span: Span,
borrow_span: Span,
desc: &str,
o: Origin
) -> DiagnosticBuilder<'cx>
[src]
fn cannot_assign_to_borrowed(
self,
span: Span,
borrow_span: Span,
desc: &str,
o: Origin
) -> DiagnosticBuilder<'cx>
🔬 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 cannot_move_into_closure(
self,
span: Span,
desc: &str,
o: Origin
) -> DiagnosticBuilder<'cx>
[src]
fn cannot_move_into_closure(
self,
span: Span,
desc: &str,
o: Origin
) -> DiagnosticBuilder<'cx>
🔬 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 cannot_reassign_immutable(
self,
span: Span,
desc: &str,
is_arg: bool,
o: Origin
) -> DiagnosticBuilder<'cx>
[src]
fn cannot_reassign_immutable(
self,
span: Span,
desc: &str,
is_arg: bool,
o: Origin
) -> DiagnosticBuilder<'cx>
🔬 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 cannot_assign(
self,
span: Span,
desc: &str,
o: Origin
) -> DiagnosticBuilder<'cx>
[src]
fn cannot_assign(
self,
span: Span,
desc: &str,
o: Origin
) -> DiagnosticBuilder<'cx>
🔬 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 cannot_assign_static(
self,
span: Span,
desc: &str,
o: Origin
) -> DiagnosticBuilder<'cx>
[src]
fn cannot_assign_static(
self,
span: Span,
desc: &str,
o: Origin
) -> DiagnosticBuilder<'cx>
🔬 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 cannot_move_out_of(
self,
move_from_span: Span,
move_from_desc: &str,
o: Origin
) -> DiagnosticBuilder<'cx>
[src]
fn cannot_move_out_of(
self,
move_from_span: Span,
move_from_desc: &str,
o: Origin
) -> DiagnosticBuilder<'cx>
🔬 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 cannot_move_out_of_interior_noncopy(
self,
move_from_span: Span,
ty: &TyS,
is_index: bool,
o: Origin
) -> DiagnosticBuilder<'cx>
[src]
fn cannot_move_out_of_interior_noncopy(
self,
move_from_span: Span,
ty: &TyS,
is_index: bool,
o: Origin
) -> DiagnosticBuilder<'cx>
🔬 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 cannot_move_out_of_interior_of_drop(
self,
move_from_span: Span,
container_ty: &TyS,
o: Origin
) -> DiagnosticBuilder<'cx>
[src]
fn cannot_move_out_of_interior_of_drop(
self,
move_from_span: Span,
container_ty: &TyS,
o: Origin
) -> DiagnosticBuilder<'cx>
🔬 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 cannot_act_on_moved_value(
self,
use_span: Span,
verb: &str,
optional_adverb_for_moved: &str,
moved_path: &str,
o: Origin
) -> DiagnosticBuilder<'cx>
[src]
fn cannot_act_on_moved_value(
self,
use_span: Span,
verb: &str,
optional_adverb_for_moved: &str,
moved_path: &str,
o: Origin
) -> DiagnosticBuilder<'cx>
🔬 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 cannot_partially_reinit_an_uninit_struct(
self,
span: Span,
uninit_path: &str,
o: Origin
) -> DiagnosticBuilder<'cx>
[src]
fn cannot_partially_reinit_an_uninit_struct(
self,
span: Span,
uninit_path: &str,
o: Origin
) -> DiagnosticBuilder<'cx>
🔬 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 closure_cannot_assign_to_borrowed(
self,
span: Span,
descr: &str,
o: Origin
) -> DiagnosticBuilder<'cx>
[src]
fn closure_cannot_assign_to_borrowed(
self,
span: Span,
descr: &str,
o: Origin
) -> DiagnosticBuilder<'cx>
🔬 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 cannot_borrow_path_as_mutable(
self,
span: Span,
path: &str,
o: Origin
) -> DiagnosticBuilder<'cx>
[src]
fn cannot_borrow_path_as_mutable(
self,
span: Span,
path: &str,
o: Origin
) -> DiagnosticBuilder<'cx>
🔬 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 cannot_borrow_across_generator_yield(
self,
span: Span,
yield_span: Span,
o: Origin
) -> DiagnosticBuilder<'cx>
[src]
fn cannot_borrow_across_generator_yield(
self,
span: Span,
yield_span: Span,
o: Origin
) -> DiagnosticBuilder<'cx>
🔬 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_does_not_live_long_enough(
self,
span: Span,
path: &str,
o: Origin
) -> DiagnosticBuilder<'cx>
[src]
fn path_does_not_live_long_enough(
self,
span: Span,
path: &str,
o: Origin
) -> DiagnosticBuilder<'cx>
🔬 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 lifetime_too_short_for_reborrow(
self,
span: Span,
path: &str,
o: Origin
) -> DiagnosticBuilder<'cx>
[src]
fn lifetime_too_short_for_reborrow(
self,
span: Span,
path: &str,
o: Origin
) -> DiagnosticBuilder<'cx>
🔬 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 cannot_act_on_capture_in_sharable_fn(
self,
span: Span,
bad_thing: &str,
help: (Span, &str),
o: Origin
) -> DiagnosticBuilder<'cx>
[src]
fn cannot_act_on_capture_in_sharable_fn(
self,
span: Span,
bad_thing: &str,
help: (Span, &str),
o: Origin
) -> DiagnosticBuilder<'cx>
🔬 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 cannot_assign_into_immutable_reference(
self,
span: Span,
bad_thing: &str,
o: Origin
) -> DiagnosticBuilder<'cx>
[src]
fn cannot_assign_into_immutable_reference(
self,
span: Span,
bad_thing: &str,
o: Origin
) -> DiagnosticBuilder<'cx>
🔬 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 cannot_capture_in_long_lived_closure(
self,
closure_span: Span,
borrowed_path: &str,
capture_span: Span,
o: Origin
) -> DiagnosticBuilder<'cx>
[src]
fn cannot_capture_in_long_lived_closure(
self,
closure_span: Span,
borrowed_path: &str,
capture_span: Span,
o: Origin
) -> DiagnosticBuilder<'cx>
🔬 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?
Auto Trait Implementations
impl<'a, 'tcx> !Send for BorrowckCtxt<'a, 'tcx>
impl<'a, 'tcx> !Send for BorrowckCtxt<'a, 'tcx>
impl<'a, 'tcx> !Sync for BorrowckCtxt<'a, 'tcx>
impl<'a, 'tcx> !Sync for BorrowckCtxt<'a, 'tcx>