]> git.lizzy.rs Git - rust.git/blob - src/librustc_target/lib.rs
Rollup merge of #68810 - ollie27:once_with_copy, r=Dylan-DPC
[rust.git] / src / librustc_target / 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/")]
11 #![feature(box_syntax)]
12 #![feature(bool_to_option)]
13 #![feature(nll)]
14
15 #[macro_use]
16 extern crate log;
17
18 pub mod abi;
19 pub mod spec;
20
21 /// Requirements for a `StableHashingContext` to be used in this crate.
22 /// This is a hack to allow using the `HashStable_Generic` derive macro
23 /// instead of implementing everything in librustc.
24 pub trait HashStableContext {}