mv compiler to compiler/
This commit is contained in:
parent
db534b3ac2
commit
9e5f7d5631
1686 changed files with 941 additions and 1051 deletions
32
compiler/rustc_target/src/lib.rs
Normal file
32
compiler/rustc_target/src/lib.rs
Normal file
|
@ -0,0 +1,32 @@
|
|||
//! 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
|
||||
//! more 'stuff' here in the future. It does not have a dependency on
|
||||
//! LLVM.
|
||||
|
||||
#![doc(html_root_url = "https://doc.rust-lang.org/nightly/")]
|
||||
#![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;
|
||||
|
||||
#[macro_use]
|
||||
extern crate tracing;
|
||||
|
||||
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
|
||||
/// instead of implementing everything in librustc_middle.
|
||||
pub trait HashStableContext {}
|
Loading…
Add table
Add a link
Reference in a new issue