Crate rustc_codegen_utils[][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?

Note

This API is completely unstable and subject to change.

Re-exports

extern crate std;
extern crate ar;
extern crate flate2;
extern crate log;
extern crate rustc;
extern crate rustc_target;
extern crate rustc_mir;
extern crate rustc_incremental;
extern crate syntax;
extern crate syntax_pos;
extern crate rustc_data_structures;
pub extern crate rustc as __rustc;
use std::prelude::v1::*;
use rustc::ty::TyCtxt;

Modules

codegen_backend [
Experimental
]

The Rust compiler.

link [
Experimental
]
symbol_names [
Experimental
]

The Rust Linkage Model and Symbol Names

symbol_names_test [
Experimental
]

Walks the crate looking for items/impl-items/trait-items that have either a rustc_symbol_name or rustc_item_path attribute and generates an error giving, respectively, the symbol name or item-path. This is used for unit testing the code that generates paths etc in all kinds of annoying scenarios.

Constants

DIAGNOSTICS [
Experimental
]

Functions

check_for_rustc_errors_attr [
Experimental
]

check for the #[rustc_error] annotation, which forces an error in codegen. This is used to write compile-fail tests that actually test that compilation succeeds without reporting an error.