2014-07-06 21:58:30 -07:00
|
|
|
//! Some stuff used by rustc that doesn't have many dependencies
|
|
|
|
//!
|
|
|
|
//! Originally extracted from rustc::back, which was nominally the
|
2017-12-08 21:18:21 +02:00
|
|
|
//! compiler 'backend', though LLVM is rustc's backend, so rustc_target
|
2014-07-06 21:58:30 -07: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
|
|
|
|
//! more 'stuff' here in the future. It does not have a dependency on
|
2018-05-29 20:41:36 +03:00
|
|
|
//! LLVM.
|
2014-07-06 21:58:30 -07:00
|
|
|
|
2019-02-05 14:37:15 +01:00
|
|
|
#![doc(html_root_url = "https://doc.rust-lang.org/nightly/")]
|
2015-01-30 12:26:44 -08:00
|
|
|
|
|
|
|
#![feature(box_syntax)]
|
2018-09-26 14:26:46 -07:00
|
|
|
#![feature(nll)]
|
2018-11-01 16:01:24 +01:00
|
|
|
#![feature(rustc_attrs)]
|
2017-12-18 16:18:36 +02:00
|
|
|
#![feature(slice_patterns)]
|
2018-11-01 16:01:24 +01:00
|
|
|
#![feature(step_trait)]
|
2014-12-31 20:43:46 -08:00
|
|
|
|
2019-02-08 21:00:07 +09:00
|
|
|
#![deny(rust_2018_idioms)]
|
|
|
|
|
2015-01-06 09:24:46 -08:00
|
|
|
#[macro_use] extern crate log;
|
2014-07-04 19:41:54 -07:00
|
|
|
|
2019-02-08 21:00:07 +09:00
|
|
|
#[allow(unused_extern_crates)]
|
2016-09-27 21:26:08 -05:00
|
|
|
extern crate serialize as rustc_serialize; // used by deriving
|
|
|
|
|
2018-04-25 19:30:39 +03:00
|
|
|
// See librustc_cratesio_shim/Cargo.toml for a comment explaining this.
|
|
|
|
#[allow(unused_extern_crates)]
|
|
|
|
extern crate rustc_cratesio_shim;
|
|
|
|
|
2018-11-01 16:01:24 +01:00
|
|
|
#[macro_use]
|
|
|
|
extern crate rustc_data_structures;
|
|
|
|
|
2017-12-18 16:18:36 +02:00
|
|
|
pub mod abi;
|
2017-12-08 21:18:21 +02:00
|
|
|
pub mod spec;
|