pub enum BumpEditError {
WorkspaceVersionNotFound,
PinNotFound {
dependency: String,
from: String,
},
PinAmbiguous {
dependency: String,
from: String,
count: usize,
},
ChangelogUnreleasedNotFound,
}Expand description
Why a cut-time bump edit could not be applied to a file’s text. Each variant is a fail-closed refusal — the executor aborts the cut rather than commit a wrong edit.
Variants§
WorkspaceVersionNotFound
The [workspace.package] section, or its version = "…" line, was not found —
the workspace root manifest is not the shape the bump expects.
PinNotFound
A pin rewrite found no line declaring dependency with the exact from
requirement — the sealed pin does not match the tree, so the executor refuses
rather than guess (fail closed on zero matches).
Fields
PinAmbiguous
A pin rewrite matched dependency’s from requirement in more than one
place, so replacing is ambiguous — the executor refuses rather than rewrite the
wrong one (fail closed on multiple matches).
Fields
ChangelogUnreleasedNotFound
The CHANGELOG had no ## [Unreleased] section to finalize, but the contract’s
changelog mode said the engine should finalize one — fail closed rather than
tag a release whose notes were never promoted.
Trait Implementations§
Source§impl Clone for BumpEditError
impl Clone for BumpEditError
Source§fn clone(&self) -> BumpEditError
fn clone(&self) -> BumpEditError
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for BumpEditError
impl Debug for BumpEditError
Source§impl Display for BumpEditError
impl Display for BumpEditError
impl Eq for BumpEditError
Source§impl Error for BumpEditError
impl Error for BumpEditError
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<BumpEditError> for BumpExecError
impl From<BumpEditError> for BumpExecError
Source§fn from(e: BumpEditError) -> Self
fn from(e: BumpEditError) -> Self
Source§impl PartialEq for BumpEditError
impl PartialEq for BumpEditError
impl StructuralPartialEq for BumpEditError
Auto Trait Implementations§
impl Freeze for BumpEditError
impl RefUnwindSafe for BumpEditError
impl Send for BumpEditError
impl Sync for BumpEditError
impl Unpin for BumpEditError
impl UnsafeUnpin for BumpEditError
impl UnwindSafe for BumpEditError
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
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
key and return true if they are equal.