Enum rustc_middle::mir::terminator::UnsafetyViolationKind [−][src]
pub enum UnsafetyViolationKind {
General,
UnsafeFn,
}Variants
Unsafe operation outside unsafe.
Unsafe operation in an unsafe fn but outside an unsafe block.
Has to be handled as a lint for backwards compatibility.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for UnsafetyViolationKindimpl Send for UnsafetyViolationKindimpl Sync for UnsafetyViolationKindimpl Unpin for UnsafetyViolationKindimpl UnwindSafe for UnsafetyViolationKindBlanket 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: 1 byte