Struct rustc::mir::UnsafetyCheckResult [−][src]
pub struct UnsafetyCheckResult {
pub violations: Lrc<[UnsafetyViolation]>,
pub unsafe_blocks: Lrc<[(NodeId, bool)]>,
}🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
Fields
violations: Lrc<[UnsafetyViolation]>
🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
Violations that are propagated upwards from this function
unsafe_blocks: Lrc<[(NodeId, bool)]>
🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
unsafe blocks in this function, along with whether they are used. This is used for the "unused_unsafe" lint.
Trait Implementations
impl<'a, 'tcx> HashStable<StableHashingContext<'a>> for UnsafetyCheckResult[src]
impl<'a, 'tcx> HashStable<StableHashingContext<'a>> for UnsafetyCheckResultfn hash_stable<W: StableHasherResult>(
&self,
__ctx: &mut StableHashingContext<'a>,
__hasher: &mut StableHasher<W>
)[src]
fn hash_stable<W: StableHasherResult>(
&self,
__ctx: &mut StableHashingContext<'a>,
__hasher: &mut StableHasher<W>
)🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
impl Clone for UnsafetyCheckResult[src]
impl Clone for UnsafetyCheckResultfn clone(&self) -> UnsafetyCheckResult[src]
fn clone(&self) -> UnsafetyCheckResultReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)Performs copy-assignment from source. Read more
impl Debug for UnsafetyCheckResult[src]
impl Debug for UnsafetyCheckResultfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl PartialEq for UnsafetyCheckResult[src]
impl PartialEq for UnsafetyCheckResultfn eq(&self, other: &UnsafetyCheckResult) -> bool[src]
fn eq(&self, other: &UnsafetyCheckResult) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &UnsafetyCheckResult) -> bool[src]
fn ne(&self, other: &UnsafetyCheckResult) -> boolThis method tests for !=.
impl Eq for UnsafetyCheckResult[src]
impl Eq for UnsafetyCheckResultfn assert_receiver_is_total_eq(&self)[src]
fn assert_receiver_is_total_eq(&self)impl Hash for UnsafetyCheckResult[src]
impl Hash for UnsafetyCheckResultfn hash<__H: Hasher>(&self, state: &mut __H)[src]
fn hash<__H: Hasher>(&self, state: &mut __H)Feeds this value into the given [Hasher]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, 1.3.0[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, Feeds a slice of this type into the given [Hasher]. Read more
impl Encodable for UnsafetyCheckResult[src]
impl Encodable for UnsafetyCheckResultfn encode<__S: Encoder>(&self, s: &mut __S) -> Result<(), __S::Error>[src]
fn encode<__S: Encoder>(&self, s: &mut __S) -> Result<(), __S::Error>🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
impl Decodable for UnsafetyCheckResult[src]
impl Decodable for UnsafetyCheckResultAuto Trait Implementations
impl !Send for UnsafetyCheckResult
impl !Send for UnsafetyCheckResultimpl !Sync for UnsafetyCheckResult
impl !Sync for UnsafetyCheckResult