1
Fork 0

update FutureIncompatibilityReason

This commit is contained in:
lcnr 2022-01-27 10:49:32 +01:00
parent 25862ffc8d
commit 7fcf7745cc
3 changed files with 35 additions and 25 deletions

View file

@ -163,12 +163,17 @@ pub enum FutureIncompatibilityReason {
/// This will be an error in a future release, and
/// Cargo should create a report even for dependencies
FutureReleaseErrorReportNow,
/// Code that changes meaning in some way in a
/// future release.
FutureReleaseSemanticsChange,
/// Previously accepted code that will become an
/// error in the provided edition
EditionError(Edition),
/// Code that changes meaning in some way in
/// the provided edition
EditionSemanticsChange(Edition),
/// A custom reason.
Custom(&'static str),
}
impl FutureIncompatibilityReason {