pub enum FixEdition {
Start(Edition),
End {
initial: Edition,
next: Edition,
},
}
Expand description
The value for -Zfix-edition
.
Variants§
Start(Edition)
-Zfix-edition=start=$INITIAL
This mode for cargo fix
will just run cargo check
if the current
edition is equal to this edition. If it is a different edition, then
it just exits with success. This is used for crater integration which
needs to set a baseline for the “before” toolchain.
End
-Zfix-edition=end=$INITIAL,$NEXT
This mode for cargo fix
will migrate to the next
edition if the
current edition is initial
. After migration, it will update
Cargo.toml
and verify that that it works on the new edition. If the
current edition is not initial
, then it immediately exits with
success since we just want to ignore those packages.
Trait Implementations§
Source§impl Debug for FixEdition
impl Debug for FixEdition
Source§impl<'de> Deserialize<'de> for FixEdition
impl<'de> Deserialize<'de> for FixEdition
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Auto Trait Implementations§
impl Freeze for FixEdition
impl RefUnwindSafe for FixEdition
impl Send for FixEdition
impl Sync for FixEdition
impl Unpin for FixEdition
impl UnwindSafe for FixEdition
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> WithSubscriber for T
impl<T> WithSubscriber for T
§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>,
§fn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
impl<T> ErasedDestructor for Twhere
T: 'static,
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: 2 bytes
Size for each variant:
Start
: 2 bytesEnd
: 2 bytes