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), }
Unstable (
rustc_private
)The origin of a r1 <= r2
constraint.
See error_reporting.rs
for more details
Variants
Subtype(TypeTrace<'tcx>)
Unstable (
rustc_private
)InfStackClosure(Span)
Unstable (
rustc_private
)InvokeClosure(Span)
Unstable (
rustc_private
)DerefPointer(Span)
Unstable (
rustc_private
)FreeVariable(Span, NodeId)
Unstable (
rustc_private
)IndexSlice(Span)
Unstable (
rustc_private
)RelateObjectBound(Span)
Unstable (
rustc_private
)RelateParamBound(Span, Ty<'tcx>)
Unstable (
rustc_private
)RelateRegionParamBound(Span)
Unstable (
rustc_private
)RelateDefaultParamBound(Span, Ty<'tcx>)
Unstable (
rustc_private
)Reborrow(Span)
Unstable (
rustc_private
)ReborrowUpvar(Span, UpvarId)
Unstable (
rustc_private
)DataBorrowed(Ty<'tcx>, Span)
Unstable (
rustc_private
)ReferenceOutlivesReferent(Ty<'tcx>, Span)
Unstable (
rustc_private
)ParameterInScope(ParameterOrigin, Span)
Unstable (
rustc_private
)ExprTypeIsNotInScope(Ty<'tcx>, Span)
Unstable (
rustc_private
)BindingTypeIsNotValidAtDecl(Span)
Unstable (
rustc_private
)CallRcvr(Span)
Unstable (
rustc_private
)CallArg(Span)
Unstable (
rustc_private
)CallReturn(Span)
Unstable (
rustc_private
)Operand(Span)
Unstable (
rustc_private
)AddrOf(Span)
Unstable (
rustc_private
)AutoBorrow(Span)
Unstable (
rustc_private
)SafeDestructor(Span)
Unstable (
rustc_private
)Methods
impl<'tcx> SubregionOrigin<'tcx>
[src]
Trait Implementations
Derived Implementations
impl<'tcx> Debug for SubregionOrigin<'tcx>
[src]
impl<'tcx> Clone for SubregionOrigin<'tcx>
[src]
fn clone(&self) -> SubregionOrigin<'tcx>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more