Struct rustc_trans::middle::traits::ObligationCause
[−]
[src]
pub struct ObligationCause<'tcx> {
pub span: Span,
pub body_id: u32,
pub code: ObligationCauseCode<'tcx>,
}Unstable
Why did we incur this obligation? Used for error reporting.
Fields
span | Unstable |
body_id | Unstable |
code | Unstable |
Methods
impl<'tcx> ObligationCause<'tcx>
fn new(span: Span, body_id: u32, code: ObligationCauseCode<'tcx>) -> ObligationCause<'tcx>
Unstable
fn misc(span: Span, body_id: u32) -> ObligationCause<'tcx>
Unstable
fn dummy() -> ObligationCause<'tcx>
Unstable