pub struct RoundsExceeded {
pub backend: String,
pub rank: u32,
pub remaining: String,
}Expand description
The error that is reported when the lowering of a tree reaches the maximum
number of rounds and the tree still contains elements that the backend
does not write natively (id flm.lowering.rounds-exceeded).
The lowering rewrites a tree in rounds. Each round applies the selected
lowering rules to the nodes of the elements that the backend does not
write natively, and the next round processes the resulting tree. The
maximum number of rounds is computed from the produces declarations of
the selected rules (rank).
This error indicates a fault of a lowering rule. For instance, a rule that
returns Lowering::Default for
an element that the backend does not write natively leaves the element in
the tree for the next round.
Reported by the lowering driver at the root of the tree. The tree has no lowered form.
Fields§
§backend: StringThe name of the backend.
rank: u32The maximum number of rounds (rank).
remaining: StringThe names of the elements that remain in the tree after the last round and that the backend does not write natively, sorted by name and separated by commas.
Implementations§
Trait Implementations§
Source§impl Clone for RoundsExceeded
impl Clone for RoundsExceeded
Source§impl Debug for RoundsExceeded
impl Debug for RoundsExceeded
Source§impl DiagnosticInfo for RoundsExceeded
impl DiagnosticInfo for RoundsExceeded
Source§const IDENTIFIER: &'static str = "flm.lowering.rounds-exceeded"
const IDENTIFIER: &'static str = "flm.lowering.rounds-exceeded"
<crate-or-lang>.<area>.<condition>. Read moreSource§fn serializable_data(&self) -> DiagnosticValue
fn serializable_data(&self) -> DiagnosticValue
Source§fn identifier(&self) -> &str
fn identifier(&self) -> &str
Source§impl Display for RoundsExceeded
impl Display for RoundsExceeded
impl Eq for RoundsExceeded
Source§impl PartialEq for RoundsExceeded
impl PartialEq for RoundsExceeded
impl StructuralPartialEq for RoundsExceeded
Auto Trait Implementations§
impl Forget for RoundsExceeded
impl Freeze for RoundsExceeded
impl Move for RoundsExceeded
impl RefUnwindSafe for RoundsExceeded
impl Send for RoundsExceeded
impl Sync for RoundsExceeded
impl Unpin for RoundsExceeded
impl UnsafeUnpin for RoundsExceeded
impl UnwindSafe for RoundsExceeded
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> DiagnosticData for Twhere
T: DiagnosticInfo,
impl<T> DiagnosticData for Twhere
T: DiagnosticInfo,
Source§fn identifier(&self) -> &str
fn identifier(&self) -> &str
DiagnosticInfo::identifier — for every
ordinary condition, the IDENTIFIER const).Source§fn serializable_data(&self) -> DiagnosticValue
fn serializable_data(&self) -> DiagnosticValue
DiagnosticInfo::serializable_data).Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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