Struct rustc_lint::FutureIncompatibleInfo [−][src]
pub struct FutureIncompatibleInfo {
pub reference: &'static str,
pub reason: FutureIncompatibilityReason,
pub explain_reason: bool,
pub future_breakage: Option<FutureBreakage>,
}Expand description
Extra information for a future incompatibility lint.
Fields
reference: &'static stre.g., a URL for an issue/PR/RFC or error code
reason: FutureIncompatibilityReasonThe reason for the lint used by diagnostics to provide the right help message
explain_reason: boolWhether to explain the reason to the user.
Set to false for lints that already include a more detailed explanation.
future_breakage: Option<FutureBreakage>Information about a future breakage, which will be emitted in JSON messages to be displayed by Cargo for upstream deps
Auto Trait Implementations
impl RefUnwindSafe for FutureIncompatibleInfoimpl Send for FutureIncompatibleInfoimpl Sync for FutureIncompatibleInfoimpl Unpin for FutureIncompatibleInfoimpl UnwindSafe for FutureIncompatibleInfoBlanket Implementations
Mutably borrows from an owned value. Read more
Layout
Note: Most layout information is completely unstable and may be different between compiler versions and platforms. 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: 48 bytes