rust/compiler/rustc_target/src/lib.rs

33 lines
1.0 KiB
Rust
Raw Normal View History

//! Some stuff used by rustc that doesn't have many dependencies
//!
//! Originally extracted from rustc::back, which was nominally the
//! compiler 'backend', though LLVM is rustc's backend, so rustc_target
//! is really just odds-and-ends relating to code gen and linking.
//! This crate mostly exists to make rustc smaller, so we might put
2019-02-08 13:53:55 +00:00
//! more 'stuff' here in the future. It does not have a dependency on
//! LLVM.
2020-09-23 19:51:56 +00:00
#![doc(html_root_url = "https://doc.rust-lang.org/nightly/nightly-rustc/")]
2019-10-08 00:14:42 +00:00
#![feature(bool_to_option)]
#![feature(const_fn)]
#![feature(const_panic)]
#![feature(nll)]
#![feature(never_type)]
#![feature(associated_type_bounds)]
#![feature(exhaustive_patterns)]
#[macro_use]
extern crate rustc_macros;
2019-12-22 22:42:04 +00:00
#[macro_use]
2020-08-14 06:05:01 +00:00
extern crate tracing;
2014-07-05 02:41:54 +00:00
pub mod abi;
pub mod asm;
pub mod spec;
/// Requirements for a `StableHashingContext` to be used in this crate.
/// This is a hack to allow using the `HashStable_Generic` derive macro
2020-03-29 13:24:45 +00:00
/// instead of implementing everything in librustc_middle.
pub trait HashStableContext {}