Enum rustc_lint::middle::traits::ObligationCauseCode
[−]
[src]
pub enum ObligationCauseCode<'tcx> {
MiscObligation,
ItemObligation(DefId),
ObjectCastObligation(&'tcx TyS<'tcx>),
AssignmentLhsSized,
StructInitializerSized,
VariableType(u32),
ReturnType,
RepeatVec,
ClosureCapture(u32, Span, BuiltinBound),
FieldSized,
SharedStatic,
BuiltinDerivedObligation(DerivedObligationCause<'tcx>),
ImplDerivedObligation(DerivedObligationCause<'tcx>),
CompareImplMethodObligation,
}Unstable
Variants
MiscObligation | Unstable Not well classified or should be obvious from span. |
ItemObligation | Unstable In an impl of trait X for type Y, type Y must also implement all supertraits of X. |
ObjectCastObligation | Unstable Obligation incurred due to an object cast. |
AssignmentLhsSized | Unstable Various cases where expressions must be sized/copy/etc: |
StructInitializerSized | Unstable |
VariableType | Unstable |
ReturnType | Unstable |
RepeatVec | Unstable |
ClosureCapture | Unstable |
FieldSized | Unstable |
SharedStatic | Unstable |
BuiltinDerivedObligation | Unstable |
ImplDerivedObligation | Unstable |
CompareImplMethodObligation | Unstable |