pub(super) struct IncompatibleRefinement<'tcx> {
span: Span,
expected_span: Option<Span>,
expected_ty: Ty<'tcx>,
def_descr: &'static str,
}
Fields§
§span: Span
§expected_span: Option<Span>
§expected_ty: Ty<'tcx>
§def_descr: &'static str
Implementations§
Source§impl<'tcx> IncompatibleRefinement<'tcx>
impl<'tcx> IncompatibleRefinement<'tcx>
pub(super) fn type_alias( genv: GlobalEnv<'_, 'tcx>, def_id: MaybeExternId, type_alias: &TyAlias<'_>, ) -> Self
pub(super) fn fn_input( genv: GlobalEnv<'_, 'tcx>, fn_id: MaybeExternId, decl: &FnDecl<'_>, pos: usize, ) -> Self
pub(super) fn fn_output( genv: GlobalEnv<'_, 'tcx>, fn_id: MaybeExternId, decl: &FnDecl<'_>, ) -> Self
pub(super) fn ensures( genv: GlobalEnv<'_, 'tcx>, fn_id: MaybeExternId, decl: &FnDecl<'_>, expected: &Ty, i: usize, ) -> Self
pub(super) fn field( genv: GlobalEnv<'_, 'tcx>, adt_id: MaybeExternId, variant_idx: VariantIdx, field_idx: FieldIdx, ) -> Self
Trait Implementations§
Source§impl<'_sess, 'tcx, G> Diagnostic<'_sess, G> for IncompatibleRefinement<'tcx>where
G: EmissionGuarantee,
impl<'_sess, 'tcx, G> Diagnostic<'_sess, G> for IncompatibleRefinement<'tcx>where
G: EmissionGuarantee,
Auto Trait Implementations§
impl<'tcx> Freeze for IncompatibleRefinement<'tcx>
impl<'tcx> !RefUnwindSafe for IncompatibleRefinement<'tcx>
impl<'tcx> Send for IncompatibleRefinement<'tcx>
impl<'tcx> Sync for IncompatibleRefinement<'tcx>
impl<'tcx> Unpin for IncompatibleRefinement<'tcx>
impl<'tcx> !UnwindSafe for IncompatibleRefinement<'tcx>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more