Enum cargo::core::compiler::fingerprint::dirty_reason::DirtyReason
source · pub enum DirtyReason {
Show 23 variants
RustcChanged,
FeaturesChanged {
old: String,
new: String,
},
TargetConfigurationChanged,
PathToSourceChanged,
ProfileConfigurationChanged,
RustflagsChanged {
old: Vec<String>,
new: Vec<String>,
},
MetadataChanged,
ConfigSettingsChanged,
CompileKindChanged,
LocalLengthsChanged,
PrecalculatedComponentsChanged {
old: String,
new: String,
},
DepInfoOutputChanged {
old: PathBuf,
new: PathBuf,
},
RerunIfChangedOutputFileChanged {
old: PathBuf,
new: PathBuf,
},
RerunIfChangedOutputPathsChanged {
old: Vec<PathBuf>,
new: Vec<PathBuf>,
},
EnvVarsChanged {
old: String,
new: String,
},
EnvVarChanged {
name: String,
old_value: Option<String>,
new_value: Option<String>,
},
LocalFingerprintTypeChanged {
old: &'static str,
new: &'static str,
},
NumberOfDependenciesChanged {
old: usize,
new: usize,
},
UnitDependencyNameChanged {
old: InternedString,
new: InternedString,
},
UnitDependencyInfoChanged {
old_name: InternedString,
old_fingerprint: u64,
new_name: InternedString,
new_fingerprint: u64,
},
FsStatusOutdated(FsStatus),
NothingObvious,
Forced,
}
Expand description
Tells a better story of why a build is considered “dirty” that leads
to a recompile. Usually constructed via Fingerprint::compare
.
Variants§
RustcChanged
FeaturesChanged
TargetConfigurationChanged
PathToSourceChanged
ProfileConfigurationChanged
RustflagsChanged
MetadataChanged
ConfigSettingsChanged
CompileKindChanged
LocalLengthsChanged
PrecalculatedComponentsChanged
DepInfoOutputChanged
RerunIfChangedOutputFileChanged
RerunIfChangedOutputPathsChanged
EnvVarsChanged
EnvVarChanged
LocalFingerprintTypeChanged
NumberOfDependenciesChanged
UnitDependencyNameChanged
UnitDependencyInfoChanged
FsStatusOutdated(FsStatus)
NothingObvious
Forced
Implementations§
source§impl DirtyReason
impl DirtyReason
Trait Implementations§
source§impl Clone for DirtyReason
impl Clone for DirtyReason
source§fn clone(&self) -> DirtyReason
fn clone(&self) -> DirtyReason
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl RefUnwindSafe for DirtyReason
impl Send for DirtyReason
impl Sync for DirtyReason
impl Unpin for DirtyReason
impl UnwindSafe for DirtyReason
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> 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> WithSubscriber for T
impl<T> WithSubscriber for T
source§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where S: Into<Dispatch>,
source§fn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 88 bytes
Size for each variant:
RustcChanged
: 0 bytesFeaturesChanged
: 56 bytesTargetConfigurationChanged
: 0 bytesPathToSourceChanged
: 0 bytesProfileConfigurationChanged
: 0 bytesRustflagsChanged
: 56 bytesMetadataChanged
: 0 bytesConfigSettingsChanged
: 0 bytesCompileKindChanged
: 0 bytesLocalLengthsChanged
: 0 bytesPrecalculatedComponentsChanged
: 56 bytesDepInfoOutputChanged
: 56 bytesRerunIfChangedOutputFileChanged
: 56 bytesRerunIfChangedOutputPathsChanged
: 56 bytesEnvVarsChanged
: 56 bytesEnvVarChanged
: 80 bytesLocalFingerprintTypeChanged
: 40 bytesNumberOfDependenciesChanged
: 24 bytesUnitDependencyNameChanged
: 40 bytesUnitDependencyInfoChanged
: 56 bytesFsStatusOutdated
: 88 bytesNothingObvious
: 0 bytesForced
: 0 bytes