Struct rustc_middle::mir::query::UnsafetyCheckResult [−][src]
pub struct UnsafetyCheckResult {
pub violations: Lrc<[UnsafetyViolation]>,
pub unsafe_blocks: Lrc<[(HirId, bool)]>,
}Fields
violations: Lrc<[UnsafetyViolation]>Violations that are propagated upwards from this function.
unsafe_blocks: Lrc<[(HirId, bool)]>unsafe blocks in this function, along with whether they are used. This is
used for the “unused_unsafe” lint.
Trait Implementations
fn allocate_from_iter<'a>(
arena: &'a Arena<'tcx>,
iter: impl IntoIterator<Item = Self>
) -> &'a mut [Self]
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
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: 32 bytes