Enum rustc::infer::SubregionOrigin
[−]
[src]
pub enum SubregionOrigin<'tcx> { Subtype(TypeTrace<'tcx>), InfStackClosure(Span), InvokeClosure(Span), DerefPointer(Span), FreeVariable(Span, NodeId), IndexSlice(Span), RelateObjectBound(Span), RelateParamBound(Span, Ty<'tcx>), RelateRegionParamBound(Span), RelateDefaultParamBound(Span, Ty<'tcx>), Reborrow(Span), ReborrowUpvar(Span, UpvarId), DataBorrowed(Ty<'tcx>, Span), ReferenceOutlivesReferent(Ty<'tcx>, Span), ParameterInScope(ParameterOrigin, Span), ExprTypeIsNotInScope(Ty<'tcx>, Span), BindingTypeIsNotValidAtDecl(Span), CallRcvr(Span), CallArg(Span), CallReturn(Span), Operand(Span), AddrOf(Span), AutoBorrow(Span), SafeDestructor(Span), CompareImplMethodObligation { span: Span, item_name: Name, impl_item_def_id: DefId, trait_item_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?
The origin of a r1 <= r2
constraint.
See error_reporting
module for more details
Variants
Subtype(TypeTrace<'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?
InfStackClosure(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?
InvokeClosure(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?
DerefPointer(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?
FreeVariable(Span, NodeId)
🔬 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?
IndexSlice(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?
RelateObjectBound(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?
RelateParamBound(Span, Ty<'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?
RelateRegionParamBound(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?
RelateDefaultParamBound(Span, Ty<'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?
Reborrow(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?
ReborrowUpvar(Span, UpvarId)
🔬 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?
DataBorrowed(Ty<'tcx>, 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?
ReferenceOutlivesReferent(Ty<'tcx>, 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?
ParameterInScope(ParameterOrigin, 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?
ExprTypeIsNotInScope(Ty<'tcx>, 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?
BindingTypeIsNotValidAtDecl(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?
CallRcvr(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?
CallArg(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?
CallReturn(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?
Operand(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?
AddrOf(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?
AutoBorrow(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?
SafeDestructor(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?
CompareImplMethodObligation
🔬 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 of CompareImplMethodObligation
span: Span | 🔬 This is a nightly-only experimental API. ( |
item_name: Name | 🔬 This is a nightly-only experimental API. ( |
impl_item_def_id: DefId | 🔬 This is a nightly-only experimental API. ( |
trait_item_def_id: DefId | 🔬 This is a nightly-only experimental API. ( |
Methods
impl<'tcx> SubregionOrigin<'tcx>
[src]
pub fn span(&self) -> Span
[src]
🔬 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 from_obligation_cause<F>(
cause: &ObligationCause<'tcx>,
default: F
) -> Self where
F: FnOnce() -> Self,
[src]
cause: &ObligationCause<'tcx>,
default: F
) -> Self where
F: FnOnce() -> Self,
🔬 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<'tcx> Clone for SubregionOrigin<'tcx>
[src]
fn clone(&self) -> SubregionOrigin<'tcx>
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more