pub enum ProfileResolutionError {
UnknownProfile {
name: String,
},
UnknownInheritedProfile {
profile: String,
parent: String,
},
InheritanceCycle {
chain: Vec<String>,
},
BuiltinCannotInherit {
name: String,
},
CustomMissingInherits {
name: String,
},
}Expand description
Errors produced by resolve_profile.
Variants§
UnknownProfile
The user selected a profile that neither matches a built-in nor a manifest entry.
UnknownInheritedProfile
A custom profile’s inherits = points at a name that does
not exist.
InheritanceCycle
The inheritance graph contains a cycle. The chain is
rendered with -> separators so the diagnostic is
scannable in CI logs.
BuiltinCannotInherit
[profile.dev] or [profile.release] declared
inherits =, which is not allowed because built-in
profiles already have implicit defaults.
CustomMissingInherits
A custom profile omitted inherits =. Cabin requires the
field on every custom profile so the inheritance closure is
explicit.
Trait Implementations§
Source§impl Clone for ProfileResolutionError
impl Clone for ProfileResolutionError
Source§fn clone(&self) -> ProfileResolutionError
fn clone(&self) -> ProfileResolutionError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ProfileResolutionError
impl Debug for ProfileResolutionError
Source§impl Display for ProfileResolutionError
impl Display for ProfileResolutionError
Source§impl Error for ProfileResolutionError
impl Error for ProfileResolutionError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl PartialEq for ProfileResolutionError
impl PartialEq for ProfileResolutionError
Source§fn eq(&self, other: &ProfileResolutionError) -> bool
fn eq(&self, other: &ProfileResolutionError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for ProfileResolutionError
impl StructuralPartialEq for ProfileResolutionError
Auto Trait Implementations§
impl Freeze for ProfileResolutionError
impl RefUnwindSafe for ProfileResolutionError
impl Send for ProfileResolutionError
impl Sync for ProfileResolutionError
impl Unpin for ProfileResolutionError
impl UnsafeUnpin for ProfileResolutionError
impl UnwindSafe for ProfileResolutionError
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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
Compare self to
key and return true if they are equal.