Module rustc_mir::transform::check_unsafety[][src]

🔬 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?

Re-exports

use rustc_data_structures::fx::FxHashSet;
use rustc_data_structures::indexed_vec::IndexVec;
use rustc_data_structures::sync::Lrc;
use rustc::ty::maps::Providers;
use rustc::ty;
use rustc::ty::TyCtxt;
use rustc::hir;
use rustc::hir::def_id::DefId;
use rustc::lint::builtin::SAFE_EXTERN_STATICS;
use rustc::lint::builtin::SAFE_PACKED_BORROWS;
use rustc::lint::builtin::UNUSED_UNSAFE;
use rustc::mir::*;
use rustc::mir::visit::PlaceContext;
use rustc::mir::visit::Visitor;
use syntax::ast;
use syntax::symbol::Symbol;
use util;

Structs

UnsafetyChecker [
Experimental
]
UnusedUnsafeVisitor [
Experimental
]

Functions

builtin_derive_def_id [
Experimental
]
check_unsafety [
Experimental
]
check_unused_unsafe [
Experimental
]
is_enclosed [
Experimental
]

Return the NodeId for an enclosing scope that is also unsafe

provide [
Experimental
]
report_unused_unsafe [
Experimental
]
unsafe_derive_on_repr_packed [
Experimental
]
unsafety_check_result [
Experimental
]