pub enum BumpEditError {
WorkspaceVersionNotFound,
RootManifestVersionNotFound,
PinNotFound {
dependency: String,
from: String,
},
PinAmbiguous {
dependency: String,
from: String,
count: usize,
},
ManifestUnparseable {
reason: String,
},
ChangelogUnreleasedNotFound,
ChangelogMarkersMalformed,
ChangelogReleaseConflict {
version: String,
},
ChangelogNotesEmpty,
}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.
RootManifestVersionNotFound
Neither the root [workspace.package] nor [package] table carried the
expected version = "…" line, so the engine cannot identify a version source.
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 found declarations of dependency whose requirements are not
all the sealed from value, so equivalence cannot be established. Equivalent
duplicates are supported and rewritten as one deterministic set.
Fields
ManifestUnparseable
A Cargo manifest could not be parsed by the shared discovery/edit parser.
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.
ChangelogMarkersMalformed
Marker-aware finalization requires exactly one ordered marker pair.
ChangelogReleaseConflict
The requested release heading already exists while new notes remain to cut.
ChangelogNotesEmpty
Finalization found neither authored entries nor compiled fragment/trailer notes.
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.