Module rustc::middle::weak_lang_items[][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?

Validity checking for weak lang items

Re-exports

use session::config;
use middle::lang_items;
use rustc_target::spec::PanicStrategy;
use syntax::ast;
use syntax::symbol::Symbol;
use syntax_pos::Span;
use hir::intravisit::Visitor;
use hir::intravisit::NestedVisitorMap;
use hir::intravisit;
use hir;
use ty::TyCtxt;
use std::collections::HashSet;

Structs

Context [
Experimental
]

Functions

check_crate [
Experimental
]

Checks the crate for usage of weak lang items, returning a vector of all the language items required by this crate, but not defined yet.

link_name [
Experimental
]
verify [
Experimental
]
whitelisted [
Experimental
]

Returns whether the specified lang_item doesn't actually need to be present for this compilation.