Enum rustc_trans::middle::infer::TypeOrigin [−] [src]

pub enum TypeOrigin {
    Misc(Span),
    MethodCompatCheck(Span),
    ExprAssignable(Span),
    RelateTraitRefs(Span),
    RelateSelfType(Span),
    RelateOutputImplTypes(Span),
    MatchExpressionArm(Span, Span),
    IfExpression(Span),
    IfExpressionWithNoElse(Span),
    RangeExpression(Span),
    EquatePredicate(Span),
}
Unstable

Why did we require that the two types be related?

See error_reporting.rs for more details

Variants

Misc
Unstable
MethodCompatCheck
Unstable
ExprAssignable
Unstable
RelateTraitRefs
Unstable
RelateSelfType
Unstable
RelateOutputImplTypes
Unstable
MatchExpressionArm
Unstable
IfExpression
Unstable
IfExpressionWithNoElse
Unstable
RangeExpression
Unstable
EquatePredicate
Unstable

Methods

impl TypeOrigin

fn span(&self) -> Span

Unstable

Trait Implementations

impl Display for TypeOrigin

fn fmt(&self, f: &mut Formatter) -> Result<(), Error>

impl<'tcx> Repr<'tcx> for TypeOrigin

fn repr(&self, tcx: &ctxt) -> String

Derived Implementations

impl Debug for TypeOrigin

fn fmt(&self, __arg_0: &mut Formatter) -> Result<(), Error>

impl Copy for TypeOrigin

impl Clone for TypeOrigin

fn clone(&self) -> TypeOrigin

fn clone_from(&mut self, source: &Self)