]> git.proxmox.com Git - rustc.git/blob - compiler/rustc_target/src/lib.rs
New upstream version 1.53.0+dfsg1
[rustc.git] / compiler / rustc_target / src / lib.rs
1 //! Some stuff used by rustc that doesn't have many dependencies
2 //!
3 //! Originally extracted from rustc::back, which was nominally the
4 //! compiler 'backend', though LLVM is rustc's backend, so rustc_target
5 //! is really just odds-and-ends relating to code gen and linking.
6 //! This crate mostly exists to make rustc smaller, so we might put
7 //! more 'stuff' here in the future. It does not have a dependency on
8 //! LLVM.
9
10 #![doc(html_root_url = "https://doc.rust-lang.org/nightly/nightly-rustc/")]
11 #![feature(bool_to_option)]
12 #![feature(const_panic)]
13 #![feature(nll)]
14 #![feature(never_type)]
15 #![feature(associated_type_bounds)]
16 #![feature(exhaustive_patterns)]
17
18 #[macro_use]
19 extern crate rustc_macros;
20
21 #[macro_use]
22 extern crate tracing;
23
24 pub mod abi;
25 pub mod asm;
26 pub mod spec;
27
28 /// Requirements for a `StableHashingContext` to be used in this crate.
29 /// This is a hack to allow using the `HashStable_Generic` derive macro
30 /// instead of implementing everything in `rustc_middle`.
31 pub trait HashStableContext {}