Enum paralegal_spdg::rustc::mir::terminator::UnsafetyViolationKind
source · pub enum UnsafetyViolationKind {
General,
UnsafeFn,
}
Variants§
General
Unsafe operation outside unsafe
.
UnsafeFn
Unsafe operation in an unsafe fn
but outside an unsafe
block.
Has to be handled as a lint for backwards compatibility.
Auto Trait Implementations§
impl RefUnwindSafe for UnsafetyViolationKind
impl Send for UnsafetyViolationKind
impl Sync for UnsafetyViolationKind
impl Unpin for UnsafetyViolationKind
impl UnwindSafe for UnsafetyViolationKind
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