Module rustc_lint::types[][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::hir::map as hir_map;
use rustc::ty::subst::Substs;
use rustc::ty;
use rustc::ty::AdtKind;
use rustc::ty::ParamEnv;
use rustc::ty::Ty;
use rustc::ty::TyCtxt;
use rustc::ty::layout;
use rustc::ty::layout::IntegerExt;
use rustc::ty::layout::LayoutOf;
use util::nodemap::FxHashSet;
use util::nodemap::FxHashSet;
use lint::LateContext;
use lint::LintContext;
use lint::LintArray;
use lint::LintPass;
use lint::LateLintPass;
use std::cmp;
use std::i8;
use std::i16;
use std::i32;
use std::i64;
use std::u8;
use std::u16;
use std::u32;
use std::u64;
use std::f32;
use std::f64;
use syntax::ast;
use syntax::attr;
use rustc_target::spec::abi::Abi;
use syntax_pos::Span;
use syntax::codemap;
use rustc::hir;

Structs

ImproperCTypes [
Experimental
]
ImproperCTypesVisitor [
Experimental
]
TypeLimits [
Experimental
]
VariantSizeDifferences [
Experimental
]

Enums

FfiResult [
Experimental
]

Statics

IMPROPER_CTYPES [
Experimental
]
OVERFLOWING_LITERALS [
Experimental
]
UNUSED_COMPARISONS [
Experimental
]
VARIANT_SIZE_DIFFERENCES [
Experimental
]

Functions

is_repr_nullable_ptr [
Experimental
]

Check if this enum can be safely exported based on the "nullable pointer optimization". Currently restricted to function pointers and references, but could be expanded to cover NonZero raw pointers and newtypes. FIXME: This duplicates code in codegen.