2014-07-07 04:58:30 +00:00
|
|
|
//! Some stuff used by rustc that doesn't have many dependencies
|
|
|
|
//!
|
|
|
|
//! Originally extracted from rustc::back, which was nominally the
|
2017-12-08 19:18:21 +00:00
|
|
|
//! compiler 'backend', though LLVM is rustc's backend, so rustc_target
|
2014-07-07 04:58:30 +00:00
|
|
|
//! 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
|
2018-05-29 17:41:36 +00:00
|
|
|
//! LLVM.
|
2014-07-07 04:58:30 +00:00
|
|
|
|
2019-02-05 13:37:15 +00:00
|
|
|
#![doc(html_root_url = "https://doc.rust-lang.org/nightly/")]
|
2019-10-08 00:14:42 +00:00
|
|
|
#![feature(bool_to_option)]
|
2020-03-10 20:41:33 +00:00
|
|
|
#![feature(const_if_match)]
|
|
|
|
#![feature(const_fn)]
|
|
|
|
#![feature(const_panic)]
|
2018-09-26 21:26:46 +00:00
|
|
|
#![feature(nll)]
|
2019-11-03 16:21:37 +00:00
|
|
|
#![feature(never_type)]
|
|
|
|
#![feature(associated_type_bounds)]
|
|
|
|
#![feature(exhaustive_patterns)]
|
2015-01-01 04:43:46 +00:00
|
|
|
|
2019-12-22 22:42:04 +00:00
|
|
|
#[macro_use]
|
|
|
|
extern crate log;
|
2014-07-05 02:41:54 +00:00
|
|
|
|
2017-12-18 14:18:36 +00:00
|
|
|
pub mod abi;
|
2017-12-08 19:18:21 +00:00
|
|
|
pub mod spec;
|
2019-11-10 16:19:08 +00:00
|
|
|
|
|
|
|
/// Requirements for a `StableHashingContext` to be used in this crate.
|
|
|
|
/// This is a hack to allow using the `HashStable_Generic` derive macro
|
|
|
|
/// instead of implementing everything in librustc.
|
2019-11-23 12:58:17 +00:00
|
|
|
pub trait HashStableContext {}
|