pub struct PreferredRuleNotCandidate {
pub rule: String,
pub backend: String,
pub workflow: Option<String>,
}Expand description
Diagnostic condition flm.run.preferred-rule-not-candidate, reported at
Warning severity: the plan request (named by its workflow when it was made
from one) preferred, for a backend, a lowering rule that is not a candidate
for any element on that backend.
A rule marked as the default for named backends
(DefaultMark::OnBackends)
belongs to those backends and is never chosen on any other. The run reports
this condition once, before any other diagnostic of the run, and goes ahead
with the rule that the rule selection order
(SelectedRules) chose instead. It is
the run-time counterpart of
PlanWarning::PreferredRuleNotCandidate.
Fields§
§rule: StringThe name of the lowering rule that the plan request preferred.
backend: StringThe name of the backend that the preference was stated for.
workflow: Option<String>The name of the workflow the plan request was made from, or None for
a request built by hand
(PlanRequest::workflow).
Implementations§
Trait Implementations§
Source§impl Clone for PreferredRuleNotCandidate
impl Clone for PreferredRuleNotCandidate
Source§impl Debug for PreferredRuleNotCandidate
impl Debug for PreferredRuleNotCandidate
Source§impl DiagnosticInfo for PreferredRuleNotCandidate
impl DiagnosticInfo for PreferredRuleNotCandidate
Source§const IDENTIFIER: &'static str = "flm.run.preferred-rule-not-candidate"
const IDENTIFIER: &'static str = "flm.run.preferred-rule-not-candidate"
<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 PreferredRuleNotCandidate
impl Display for PreferredRuleNotCandidate
impl Eq for PreferredRuleNotCandidate
impl StructuralPartialEq for PreferredRuleNotCandidate
Auto Trait Implementations§
impl Forget for PreferredRuleNotCandidate
impl Freeze for PreferredRuleNotCandidate
impl Move for PreferredRuleNotCandidate
impl RefUnwindSafe for PreferredRuleNotCandidate
impl Send for PreferredRuleNotCandidatewhere
RawVecInner: Send,
impl Sync for PreferredRuleNotCandidatewhere
RawVecInner: Sync,
impl Unpin for PreferredRuleNotCandidate
impl UnsafeUnpin for PreferredRuleNotCandidate
impl UnwindSafe for PreferredRuleNotCandidatewhere
RawVecInner: UnwindSafe,
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