Struct paralegal_spdg::rustc::mir::UnsafetyCheckResult
source · pub struct UnsafetyCheckResult {
pub violations: Vec<UnsafetyViolation, Global>,
pub used_unsafe_blocks: UnordSet<HirId>,
pub unused_unsafes: Option<Vec<(HirId, UnusedUnsafe), Global>>,
}
Fields§
§violations: Vec<UnsafetyViolation, Global>
Violations that are propagated upwards from this function.
used_unsafe_blocks: UnordSet<HirId>
Used unsafe
blocks in this function. This is used for the “unused_unsafe” lint.
unused_unsafes: Option<Vec<(HirId, UnusedUnsafe), Global>>
This is Some
iff the item is not a closure.
Auto Trait Implementations§
impl RefUnwindSafe for UnsafetyCheckResult
impl !Send for UnsafetyCheckResult
impl !Sync for UnsafetyCheckResult
impl Unpin for UnsafetyCheckResult
impl UnwindSafe for UnsafetyCheckResult
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