Enum rustc_infer::infer::error_reporting::need_type_info::UseDiagnostic [−][src]
Expand description
An observation about the use site of a type to be emitted as an additional note in an inference failure error.
Variants
Expand description
Records the types inferred before and after From::from is called on the
error value within the desugaring of the ? operator.
Implementations
impl UseDiagnostic<'_>[src]
impl UseDiagnostic<'_>[src]fn type_descr(&self) -> &'static str[src]
fn type_descr(&self) -> &'static str[src]Return a descriptor of the type at the use site
fn applies_to(&self, span: Span) -> bool[src]
fn attach_note(&self, err: &mut DiagnosticBuilder<'_>)[src]
Auto Trait Implementations
impl<'tcx> !RefUnwindSafe for UseDiagnostic<'tcx>
impl<'tcx> !Send for UseDiagnostic<'tcx>
impl<'tcx> !Sync for UseDiagnostic<'tcx>
impl<'tcx> Unpin for UseDiagnostic<'tcx>
impl<'tcx> !UnwindSafe for UseDiagnostic<'tcx>
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]pub fn borrow_mut(&mut self) -> &mut T[src]
pub fn borrow_mut(&mut self) -> &mut T[src]Mutably borrows from an owned value. Read more
impl<T> WithConstness for T[src]
impl<T> WithConstness for T[src]fn with_constness(self, constness: Constness) -> ConstnessAnd<Self>[src]
fn with_const(self) -> ConstnessAnd<Self>[src]
fn without_const(self) -> ConstnessAnd<Self>[src]
impl<'a, T> Captures<'a> for T where
T: ?Sized, [src]
T: ?Sized,