pub enum CatchUpError {
NestingTooDeep(FlmDiagnostic),
Rewrite {
stage: StageName,
diagnostic: FlmDiagnostic,
},
Store(StoreError),
}Expand description
The reason why value catch-up could not bring a synthesized value up to date.
Returned by StageCx::resolve_value and
StageCx::resolve_value_with. The caller of value catch-up decides what to
do. Lowerer::splice, for example,
turns the store’s refusal of a fact about the document into
LowerError::DocumentFactInValue
and any other failure into
LowerError::CatchUp.
Variants§
NestingTooDeep(FlmDiagnostic)
A rewrite stage found the synthesized value nested more deeply than the
recursion guard allows. The diagnostic’s condition is
SynthNestingTooDeep.
Rewrite
A rewrite stage failed over the synthesized value.
Fields
diagnostic: FlmDiagnosticThe one diagnostic it reported.
Store(StoreError)
A stage run during value catch-up produced a table piece that states a
fact about the document as a whole
(StoreError::DocumentFactInValue), which a synthesized value may not
do, or an invariant of the catch-up store failed
(StoreError::SecondWriter).
Implementations§
Source§impl CatchUpError
impl CatchUpError
Sourcepub fn diagnostic(&self) -> Option<&FlmDiagnostic>
pub fn diagnostic(&self) -> Option<&FlmDiagnostic>
Returns the one diagnostic that describes the failure, when the failure has one.
CatchUpError::Store has none; its Display text describes the
failure.
Trait Implementations§
Source§impl Debug for CatchUpError
impl Debug for CatchUpError
Source§impl Display for CatchUpError
impl Display for CatchUpError
Source§impl Error for CatchUpError
impl Error for CatchUpError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
Source§impl From<StoreError> for CatchUpError
impl From<StoreError> for CatchUpError
Source§fn from(error: StoreError) -> CatchUpError
fn from(error: StoreError) -> CatchUpError
Auto Trait Implementations§
impl !RefUnwindSafe for CatchUpError
impl !UnwindSafe for CatchUpError
impl Forget for CatchUpError
impl Freeze for CatchUpErrorwhere
*const dyn DiagnosticData is !null: Freeze,
PhantomData<dyn DiagnosticData>: Freeze,
*const ArcInner<Source<FlmOrigin>> is !null: Freeze,
PhantomData<ArcInner<Source<FlmOrigin>>>: Freeze,
*const u8 is !null: Freeze,
PhantomData<TraceFrame<FlmOrigin>>: Freeze,
*const ArcInner<str> is !null: Freeze,
PhantomData<ArcInner<str>>: Freeze,
impl Move for CatchUpError
impl Send for CatchUpError
impl Sync for CatchUpError
impl Unpin for CatchUpError
impl UnsafeUnpin for CatchUpErrorwhere
*const dyn DiagnosticData is !null: UnsafeUnpin,
PhantomData<dyn DiagnosticData>: UnsafeUnpin,
*const ArcInner<Source<FlmOrigin>> is !null: UnsafeUnpin,
PhantomData<ArcInner<Source<FlmOrigin>>>: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<TraceFrame<FlmOrigin>>: UnsafeUnpin,
*const ArcInner<str> is !null: UnsafeUnpin,
PhantomData<ArcInner<str>>: UnsafeUnpin,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CheckedAs for T
impl<T> CheckedAs for T
Source§fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
Source§impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
Source§fn checked_cast_from(src: Src) -> Option<Dst>
fn checked_cast_from(src: Src) -> Option<Dst>
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> ⓘ
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> ⓘ
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