pub enum FinalCargoError {
Show 39 variants
ManagedPath(ManagedPathError),
TargetLease(DescriptorCargoRunError),
SnapshotArtifactWithoutFilename(PathBuf),
SnapshotArtifactNotFile(PathBuf),
SnapshotArtifactIo {
path: PathBuf,
source: Error,
},
ConflictingSnapshotArtifact(PathBuf),
UnsupportedSnapshotExecutable {
path: PathBuf,
reason: String,
},
UnsupportedSnapshotDependency {
path: PathBuf,
dependency: String,
reason: &'static str,
},
RelativeWrapper(PathBuf),
RelativeWorkingDirectory(PathBuf),
RelativeSourceExclusionDirectory(PathBuf),
RelativeTargetRoot(PathBuf),
RelativePlanPath(PathBuf),
MissingCargoArguments,
UnsupportedCargoSubcommand(OsString),
RuntimeArgumentsForCompileOnlySubcommand(OsString),
ReservedCargoArgument(String),
ReservedEnvironment(String),
UnsupportedEnvironment(&'static str),
ExistingWorkspaceWrapper,
ExistingRustcWrapper,
ReadPlan {
path: PathBuf,
source: Error,
},
ParsePlan {
path: PathBuf,
source: Error,
},
PlanFormat {
actual: String,
},
PlanIdMismatch {
expected: PlanId,
actual: String,
},
LinkUnitMismatch {
expected: String,
actual: String,
},
PlanFilename {
path: PathBuf,
expected: String,
},
PlanContentMismatch,
SerializeExpectedPlan(String),
UnitMap(FinalUnitMapError),
NonUtf8PlanPath(PathBuf),
SpawnCargo {
program: PathBuf,
source: Error,
},
MissingCargoStdout,
ReadCargoStdout(Error),
NonUtf8CargoProtocol {
line: usize,
source: Utf8Error,
},
WaitForCargo(Error),
CargoFailed(ExitStatus),
CargoProtocol(CargoMessageError),
NoCargoArtifacts,
}Expand description
Final-compilation validation or Cargo failure.
Variants§
ManagedPath(ManagedPathError)
Managed outputs must remain beneath the generated-output boundary and may not traverse symlinks or special filesystem entries.
TargetLease(DescriptorCargoRunError)
Stable final targets are serialized through the shared target lease.
SnapshotArtifactWithoutFilename(PathBuf)
A selected final root path had no filename for snapshot publication.
SnapshotArtifactNotFile(PathBuf)
Only plain regular files can become immutable launch artifacts.
SnapshotArtifactIo
Immutable launch artifact publication or validation failed.
Fields
ConflictingSnapshotArtifact(PathBuf)
A content-addressed snapshot path contained different bytes or mode.
UnsupportedSnapshotExecutable
Executable parsing or host-format validation could not prove that a relocated snapshot remains directly launchable.
Fields
UnsupportedSnapshotDependency
A runtime library or loader path would retain mutable or relocation-sensitive state outside the selected snapshot.
Fields
RelativeWrapper(PathBuf)
Wrapper path must be invocation-stable.
RelativeWorkingDirectory(PathBuf)
Cargo cwd must be explicit.
RelativeSourceExclusionDirectory(PathBuf)
Cross-phase package-source exclusion must be exact.
RelativeTargetRoot(PathBuf)
Target root must be explicit.
RelativePlanPath(PathBuf)
Plan path must be exact.
MissingCargoArguments
Cargo invocation is empty.
UnsupportedCargoSubcommand(OsString)
Only known compile-only rewrites are accepted by the final runner.
RuntimeArgumentsForCompileOnlySubcommand(OsString)
Runtime suffixes have no meaning for already compile-only subcommands.
ReservedCargoArgument(String)
Runner-owned Cargo argument was supplied.
ReservedEnvironment(String)
Runner-owned environment was supplied.
UnsupportedEnvironment(&'static str)
Proc-macro filesystem fallbacks are not part of exact build identity.
ExistingWorkspaceWrapper
Existing wrappers are not represented by the current identity model.
ExistingRustcWrapper
An inherited wrapper is outside final-target/cache identity.
ReadPlan
Plan bytes could not be read.
ParsePlan
Plan JSON is invalid.
PlanFormat
Wrong external plan format.
PlanIdMismatch
File names another PlanId.
LinkUnitMismatch
File names another root graph.
PlanFilename
Content-addressed filename disagrees with PlanId.
PlanContentMismatch
The exact file and in-memory plan disagree despite sharing their top-level identifiers.
SerializeExpectedPlan(String)
The in-memory plan could not be deterministically serialized for exact comparison.
UnitMap(FinalUnitMapError)
Descriptor-to-final identity map construction failed.
NonUtf8PlanPath(PathBuf)
Plan path cannot enter rustc’s environment.
SpawnCargo
Cargo spawn failed.
MissingCargoStdout
Cargo stdout pipe was unavailable.
ReadCargoStdout(Error)
Cargo stdout failed.
NonUtf8CargoProtocol
Cargo’s compile-only machine-readable protocol must remain UTF-8.
WaitForCargo(Error)
Cargo wait failed.
CargoFailed(ExitStatus)
Cargo compilation failed.
CargoProtocol(CargoMessageError)
Cargo JSON protocol failed.
NoCargoArtifacts
Successful Cargo invocation emitted no artifacts.
Trait Implementations§
Source§impl Debug for FinalCargoError
impl Debug for FinalCargoError
Source§impl Display for FinalCargoError
impl Display for FinalCargoError
Source§impl Error for FinalCargoError
impl Error for FinalCargoError
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<ManagedPathError> for FinalCargoError
impl From<ManagedPathError> for FinalCargoError
Source§fn from(source: ManagedPathError) -> Self
fn from(source: ManagedPathError) -> Self
Auto Trait Implementations§
impl !RefUnwindSafe for FinalCargoError
impl !UnwindSafe for FinalCargoError
impl Freeze for FinalCargoError
impl Send for FinalCargoError
impl Sync for FinalCargoError
impl Unpin for FinalCargoError
impl UnsafeUnpin for FinalCargoError
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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